MathGroup Archive 2005

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

Search the Archive

Re: findroot


(inputs:)
eqn = x^2 - x + .015
rule = FindRoot[eqn, {x, 1}]
root = x /. rule
eqn /. rule

(outputs:)
0.015 - x + x^2
{x -> 0.984767985741636}
0.984767985741636
3.1086244689504383*^-15

Bobby

On Sun, 20 Mar 2005 04:12:03 -0500 (EST), dumb_founded <andreajagger_8 at hotmail.com> wrote:

> How come you can't really store the root spat out by FindRoot in some
> variable?  You just get a set.  I want to get rid of the set and have
> the numerical root stored in some variable.
>
> Thanks.
>
>
>
>



-- 
DrBob at bigfoot.com


  • Prev by Date: Re: simple cipher
  • Next by Date: Re: Do loop is faulty
  • Previous by thread: findroot
  • Next by thread: Re: findroot