RE: Confusion between rules and variables
- To: mathgroup at smc.vnet.net
- Subject: [mg42420] RE: [mg42416] Confusion between rules and variables
- From: "John C. Erb, Ph.D." <John_C_Erb at prodigy.net>
- Date: Sun, 6 Jul 2003 06:57:03 -0400 (EDT)
- Organization: John C. Erb, Ph.D.
- Reply-to: <John_C_Erb at prodigy.net>
- Sender: owner-wri-mathgroup at wolfram.com
An example using ReplaceAll Ans = x/.Solve[x^2-1\==0,x] which gives {-1,1} You can then use x1 = ans[[1]] x2 = ans[[2]] John C. Erb -----Original Message----- From: Jonathan Greenberg [mailto:greenberg at ucdavis.edu] To: mathgroup at smc.vnet.net Subject: [mg42420] [mg42416] Confusion between rules and variables I ran a FindRoot where the output was {x->0.543} -- How do I extact that value (0.543) for use in some other equation (e.g. How do I set a variable equal to 0.543, instead of that entire rule)? --j