MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: here's one driving me mad!


<GlennRoberts at hbosts.com> wrote in message news:bpuqlc$o6f$1 at smc.vnet.net...
> hi all
> i have used the FindRoot function and it returns an output:
> {sd -> 10} say
>
> how do i get the output to return it without the sd -> bit ?

The output with the "->" is a replacement rule that says "replace the
variable you wanted solved for in FindRoot with the value found by
findroot".  To apply this rule on some other expression, use the ReplaceAll
operator "/."  .   For example:

In[3]:=
x /. FindRoot[x^2 == 10, {x, 3}]

Out[3]=
3.16228

-- 
Curt Fischer



  • Prev by Date: Re: here's one driving me mad!
  • Next by Date: Re: change of a coefficient in a polynomial
  • Previous by thread: Re: here's one driving me mad!
  • Next by thread: RE: here's one driving me mad!