MathGroup Archive 2005

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

Search the Archive

Re: refer to the result of FindRoot[ ]


In[5]:=
YourFindRoot[eq_, {var_, start_}] :=
   var /. FindRoot[eq, {var, start}]

In[6]:=
YourFindRoot[x^2 - x - 1 == 0, {x, 0.1}]

Out[6]=
-0.618034

On Oct 21, 2005, at 12:38 AM, perimeterbow at gmail.com wrote:

> FindRoot[] returns result in this format {x->2.123}, how can I get rid
> of the x-> so I can use the number directly to automate calculation
> flow?
> Thanks.
>
>

Ken Levasseur
http://homepage.mac.com/klevasseur/

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


  • Prev by Date: Re: refer to the result of FindRoot[ ]
  • Next by Date: Re: refer to the result of FindRoot[ ]
  • Previous by thread: refer to the result of FindRoot[ ]
  • Next by thread: Re: refer to the result of FindRoot[ ]