Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4296 > unrolled thread
| Started by | Arturo Amador <arturo.amador@ntnu.no> |
|---|---|
| First post | 2011-08-11 07:27 +0000 |
| Last post | 2011-08-11 07:27 +0000 |
| Articles | 1 — 1 participant |
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.
Re: ? Arturo Amador <arturo.amador@ntnu.no> - 2011-08-11 07:27 +0000
| From | Arturo Amador <arturo.amador@ntnu.no> |
|---|---|
| Date | 2011-08-11 07:27 +0000 |
| Subject | Re: ? |
| Message-ID | <j2008l$5ll$1@smc.vnet.net> |
Try:
FindRoot[x+9,{x,-5}][[1]][[2]]
--
Arturo Amador Cruz
Stipendiat Norges =
Teknisk-Naturvitenskapelige Universitet (NTNU)
Institutt for Fysikk
Fakultet for =
Naturvitenskap og Teknologi
H=F8gskoleringen 5, =
Realfagbygget, E5-108
Telefon (735) 93366 NO-7491 =
TRONDHEIM
=
NORWAY
arturo.amador@ntnu.no
On Aug 10, 2011, at 12:47 PM, David Kirkby wrote:
> 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
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web