Re: How do I get a numeric value from FindRoot[] ?
- To: mathgroup at smc.vnet.net
 - Subject: [mg120886] Re: How do I get a numeric value from FindRoot[] ?
 - From: Yves Klett <yves.klett at googlemail.com>
 - Date: Sun, 14 Aug 2011 08:14:46 -0400 (EDT)
 - Delivered-to: l-mathgroup@mail-archive0.wolfram.com
 - References: <j206tf$77b$1@smc.vnet.net> <j25l1f$ovn$1@smc.vnet.net>
 
Notably, Part arguments can be supplied in quite a number of ways,
saving lots of square brackets...
FindRoot[x + 9, {x, -5}][[1, 2]]
Regards,
Yves
Am 13.08.2011 12:52, schrieb Gary Wardall:
> On Aug 11, 4:20 am, Glenn Carlson <g.cr... at gmail.com> wrote:
>> In[1]:= sol = FindRoot[x + 9, {x, -5}]
>> x = x /. sol
>> x + 2.5
>>
>> Out[1]:= {x -> -9.}
>> Out[2]:= -9.
>> Out[3]:= -6.5
>>
>> Regards,
>> Glenn
> 
> One could also do:
> 
> FindRoot[x + 9, {x, -5}][[1]][[2]]
> 
> Gary Wardall
>