MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120857] Re: How do I get a numeric value from FindRoot[] ?
  • From: Gary Wardall <gwardall at gmail.com>
  • Date: Sat, 13 Aug 2011 06:48:20 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j206tf$77b$1@smc.vnet.net>

On Aug 11, 4:20 am, Glenn Carlson <g.cr... at 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




  • Prev by Date: more efficient method of importing and plotting large (> 100mb) files.
  • Next by Date: Double Clicking (was: Just another Mathematica "Gotcha")
  • Previous by thread: Re: How do I get a numeric value from FindRoot[] ?
  • Next by thread: Re: How do I get a numeric value from FindRoot[] ?