MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

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...
> 
> 



  • Prev by Date: Re: Re: how restore version 5.2 graphics in 6
  • Next by Date: Re: problem with MLGetReal64Array
  • Previous by thread: Re: Find / Replace in List problem ... v6.01
  • Next by thread: Keyboard shortcut