{x -> 0.49454545}
How can I convert that list, into the number 0.49454545?
In[1]:= FindRoot[x+9,{x,-5}]
Out[1]= {x -> -9.}
In[2]:= Head[%]
Out[2]= List
I can't seem to find any "normal" operations on the list which give me
the number.
Dave
Out[1]:= {x -> -9.}
Out[2]:= -9.
Out[3]:= -6.5
Regards,
Glenn
One could also do:
FindRoot[x + 9, {x, -5}][[1]][[2]]
Gary Wardall
FindRoot[x + 9, {x, -5}][[1, 2]]
Regards,
Yves