MathGroup Archive 1998

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

Search the Archive

Re: Variable Assignment


yourFavoriteVariableName = x/.FindRoot[Exp[x] == x^2,{x,-0.5}]

you can even say x = x/.FindRoot[Exp[x] == x^2,{x,-0.5}]


However, if you do that you will need to reset x before you use it again
in your FindRoot.

Cheers,

Kevin


>FindRoot[Exp[x] == x^2, {x, -0.5}]
>
>{x --> -0.703467}
>
>How do I assign the result [-0.7033467] to a variable?
>
>




  • Prev by Date: RE: Variable Assignment
  • Next by Date: Re: Variable Assignment
  • Previous by thread: RE: Variable Assignment
  • Next by thread: Re: Variable Assignment