Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4275

How do I get a numeric value from FindRoot[] ?

From David Kirkby <david.kirkby@onetel.net>
Newsgroups comp.soft-sys.math.mathematica
Subject How do I get a numeric value from FindRoot[] ?
Date 2011-08-10 10:52 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j1tnu8$ppe$1@smc.vnet.net> (permalink)

Show all headers | View raw


The output of FindRoot[] when trying to find a root is like:

{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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

How do I get a numeric value from FindRoot[] ? David Kirkby <david.kirkby@onetel.net> - 2011-08-10 10:52 +0000

csiph-web