Re: refer to the result of FindRoot[ ]

*To*: mathgroup at smc.vnet.net*Subject*: [mg61560] Re: refer to the result of FindRoot[ ]*From*: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>*Date*: Sat, 22 Oct 2005 00:36:19 -0400 (EDT)*Organization*: The Open University, Milton Keynes, UK*References*: <dja24u$fg7$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

perimeterbow at gmail.com wrote: > FindRoot[] returns result in this format {x->2.123}, how can I get rid > of the x-> so I can use the number directly to automate calculation > flow? > Thanks. > *FindRoot* returns a list of transformation rules. You can use/apply them thanks to the replacement operator /. (forward slash and dot) as in the following example: In[1]:= FindRoot[x^2 + 5*x + 6 == 0, {x, 1}] Out[1]= {x -> -2.} In[2]:= x /. First[%] Out[2]= -2. Check http://documents.wolfram.com/mathematica/book/section-1.4.2 Regards, /J.M.