MathGroup Archive 2011

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

Search the Archive

Re: ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120808] Re: ?
  • From: Barrie Stokes <Barrie.Stokes at newcastle.edu.au>
  • Date: Thu, 11 Aug 2011 05:11:56 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201108101047.GAA26230@smc.vnet.net>

Mate:

As we say in Australia, RTFM.

If you type -> (hyphen, greater than) into the online help, you get plenty of examples concerning Rules.

A lot of us do something like:

sol = FindRoot[x+9,{x,-5}]
rootOfEquation = x/.sol

Cheers

Barrie

>>> On 10/08/2011 at 8:47 pm, in message <201108101047.GAA26230 at smc.vnet.net>,
David Kirkby <david.kirkby at onetel.net> wrote:
> 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





  • Prev by Date: Re: ?
  • Next by Date: Re: ?
  • Previous by thread: Re: ?
  • Next by thread: Re: ?