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