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
- References:
- refer to the result of FindRoot[ ]
- From: perimeterbow@gmail.com
- refer to the result of FindRoot[ ]