Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: Variable Assignment

  • To: mathgroup at
  • Subject: [mg14009] Re: Variable Assignment
  • From: "Kevin J. McCann" <kevinmccann at>
  • Date: Mon, 14 Sep 1998 02:57:52 -0400
  • Organization: @Home Network
  • References: <6tfpjt$>
  • Sender: owner-wri-mathgroup at

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.



>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