Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4321 > unrolled thread

Re: How do I get a numeric value from FindRoot[] ?

Started byGlenn Carlson <g.crlsn@gmail.com>
First post2011-08-11 09:20 +0000
Last post2011-08-14 12:20 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: How do I get a numeric value from FindRoot[] ? Glenn Carlson <g.crlsn@gmail.com> - 2011-08-11 09:20 +0000
    Re: How do I get a numeric value from FindRoot[] ? Gary Wardall <gwardall@gmail.com> - 2011-08-13 10:52 +0000
      Re: How do I get a numeric value from FindRoot[] ? Yves Klett <yves.klett@googlemail.com> - 2011-08-14 12:20 +0000

#4321 — Re: How do I get a numeric value from FindRoot[] ?

FromGlenn Carlson <g.crlsn@gmail.com>
Date2011-08-11 09:20 +0000
SubjectRe: How do I get a numeric value from FindRoot[] ?
Message-ID<j206tf$77b$1@smc.vnet.net>
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

[toc] | [next] | [standalone]


#4365

FromGary Wardall <gwardall@gmail.com>
Date2011-08-13 10:52 +0000
Message-ID<j25l1f$ovn$1@smc.vnet.net>
In reply to#4321
On Aug 11, 4:20 am, Glenn Carlson <g.cr...@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

[toc] | [prev] | [next] | [standalone]


#4394

FromYves Klett <yves.klett@googlemail.com>
Date2011-08-14 12:20 +0000
Message-ID<j28ej1$3ei$1@smc.vnet.net>
In reply to#4365
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...@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
> 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web