MathGroup Archive 2011

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

Search the Archive

Re: ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120788] Re: ?
  • From: Arturo Amador <arturo.amador at ntnu.no>
  • Date: Thu, 11 Aug 2011 03:27:31 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201108101047.GAA26230@smc.vnet.net>

Try:

FindRoot[x+9,{x,-5}][[1]][[2]]


--
Arturo Amador Cruz
Stipendiat				Norges =
Teknisk-Naturvitenskapelige Universitet (NTNU)
						Institutt for Fysikk
						Fakultet for =
Naturvitenskap og Teknologi
						H=F8gskoleringen 5, =
Realfagbygget, E5-108
Telefon					(735) 93366		NO-7491 =
TRONDHEIM
										=
NORWAY
arturo.amador at ntnu.no



On Aug 10, 2011, at 12:47 PM, David Kirkby 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: Pattern in immediate definition
  • Next by Date: Re: Just another Mathematica "Gotcha"
  • Previous by thread: How do I get a numeric value from FindRoot[] ?
  • Next by thread: Re: ?