Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: refer to the result of FindRoot[ ]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61545] Re: [mg61520] refer to the result of FindRoot[ ]
  • From: Ken Levasseur <klevasseur at mac.com>
  • Date: Sat, 22 Oct 2005 00:35:31 -0400 (EDT)
  • References: <200510210438.AAA13430@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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[ ]