MathGroup Archive 2008

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

Search the Archive

Find / Replace in List problem ... v6.01

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84766] Find / Replace in List problem ... v6.01
  • From: "Lea Rebanks" <lrebanks at netvigator.com>
  • Date: Sun, 13 Jan 2008 05:46:42 -0500 (EST)

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: how restore version 5.2 graphics in 6
  • Next by Date: Re: operator definition
  • Previous by thread: Re: Re: Re: Re: Creating a set from two other sets
  • Next by thread: Re: Find / Replace in List problem ... v6.01