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


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

Re: ?

Started byTomas Garza <tgarza10@msn.com>
First post2011-08-11 09:23 +0000
Last post2011-08-13 10:52 +0000
Articles 2 — 2 participants

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: ? Tomas Garza <tgarza10@msn.com> - 2011-08-11 09:23 +0000
    Re: ? Gary Wardall <gwardall@gmail.com> - 2011-08-13 10:52 +0000

#4326 — Re: ?

FromTomas Garza <tgarza10@msn.com>
Date2011-08-11 09:23 +0000
SubjectRe: ?
Message-ID<j20728$789$1@smc.vnet.net>
Try
In[1]:= x/.{x->0.49454545}Out[1]= 0.494545
-Tomas
> Date: Wed, 10 Aug 2011 06:47:21 -0400
> From: david.kirkby@onetel.net
> Subject: ?
> To: mathgroup@smc.vnet.net
>
> The output of FindRoot[] when trying to find a root is like:
>
> {x -> 0.49454545}
>
> How can I convert that list, into the number 0.49454545?
>
> In[1]:= FindRoot[x+9,{x,-5}]
>
> Out[1]= {x -> -9.}
>
> In[2]:= Head[%]
>
> Out[2]= List
>
> I can't seem to find any "normal" operations on the list which give me
> the number.
>
> Dave
>

[toc] | [next] | [standalone]


#4364

FromGary Wardall <gwardall@gmail.com>
Date2011-08-13 10:52 +0000
Message-ID<j25l0h$ovi$1@smc.vnet.net>
In reply to#4326
On Aug 11, 4:23 am, Tomas Garza <tgarz...@msn.com> wrote:
> Try
> In[1]:= x/.{x->0.49454545}Out[1]= 0.494545
> -Tomas
>
> > Date: Wed, 10 Aug 2011 06:47:21 -0400
> > From: david.kir...@onetel.net
> > Subject: ?
> > To: mathgr...@smc.vnet.net
>
> > The output of FindRoot[] when trying to find a root is like:
>
> > {x -> 0.49454545}
>
> > How can I convert that list, into the number 0.49454545?
>
> > In[1]:= FindRoot[x+9,{x,-5}]
>
> > Out[1]= {x -> -9.}
>
> > In[2]:= Head[%]
>
> > Out[2]= List
>
> > I can't seem to find any "normal" operations on the list which give me
> > the number.
>
> > Dave

Try:

FindRoot[x + 9, {x, -5}][[1]][[2]]


Gary Wardall

[toc] | [prev] | [standalone]


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


csiph-web