Re: Find / Replace in List problem ... v6.01
- To: mathgroup at smc.vnet.net
- Subject: [mg84781] Re: [mg84766] Find / Replace in List problem ... v6.01
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Mon, 14 Jan 2008 03:46:51 -0500 (EST)
- Reply-to: hanlonr at cox.net
ReplaceAll[modTotalDegrees90, 22.5 -> 18.434949] Bob Hanlon ---- Lea Rebanks <lrebanks at netvigator.com> wrote: > Hi All, > > Given the following list in "modTotalDegrees" > > I am trying to replace all elements with "22.5" with "18.434949". > I having problems & cannot find the appropriate function / method to do > this. I am using Mathematica version 6.01 on a PC. > (Apologies for such a simple question.) > > Replace[modTotalDegrees90,22.5->18.434949] > {22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45 > .,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0 > .,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,4 > 5.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5, > 0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5, > 45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5 > ,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5 > ,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67. > 5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22.5,45.,67.5,0.,22. > 5} > > Many thanks for your help & attention. > Best Regards - Lea Rebanks... > >