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


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

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

From Gary Wardall <gwardall@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How do I get a numeric value from FindRoot[] ?
Date 2011-08-13 10:52 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j25l1f$ovn$1@smc.vnet.net> (permalink)
References <j206tf$77b$1@smc.vnet.net>

Show all headers | View raw


On Aug 11, 4:20 am, Glenn Carlson <g.cr...@gmail.com> wrote:
> In[1]:= sol = FindRoot[x + 9, {x, -5}]
> x = x /. sol
> x + 2.5
>
> 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

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


Thread

Re: How do I get a numeric value from FindRoot[] ? Glenn Carlson <g.crlsn@gmail.com> - 2011-08-11 09:20 +0000
  Re: How do I get a numeric value from FindRoot[] ? Gary Wardall <gwardall@gmail.com> - 2011-08-13 10:52 +0000
    Re: How do I get a numeric value from FindRoot[] ? Yves Klett <yves.klett@googlemail.com> - 2011-08-14 12:20 +0000

csiph-web