MathGroup Archive 2011

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120794] How do I get a numeric value from FindRoot[] ?
  • From: David Kirkby <david.kirkby at onetel.net>
  • Date: Wed, 10 Aug 2011 06:47:21 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

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




  • Follow-Ups:
    • Re: ?
      • From: Murray Eisenberg <murray@math.umass.edu>
    • Re: ?
      • From: Barrie Stokes <Barrie.Stokes@newcastle.edu.au>
    • Re: ?
      • From: Richard Hofler <rhofler@bus.ucf.edu>
    • Re: ?
      • From: DrMajorBob <btreat1@austin.rr.com>
    • Re: ?
      • From: "Harvey P. Dale" <hpd1@nyu.edu>
    • Re: ?
      • From: Tomas Garza <tgarza10@msn.com>
    • Re: ?
      • From: Jacopo Bertolotti <jacopo.bertolotti@gmail.com>
    • Re: ?
      • From: Arturo Amador <arturo.amador@ntnu.no>
  • Prev by Date: Re: Textbook recommendation?
  • Next by Date: Import Via FTP
  • Previous by thread: Re: Some questions about a Mathematica script
  • Next by thread: Re: ?