Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 smc.vnet.net
  • Subject: [mg14009] Re: Variable Assignment
  • From: "Kevin J. McCann" <kevinmccann at Home.com>
  • Date: Mon, 14 Sep 1998 02:57:52 -0400
  • Organization: @Home Network
  • References: <6tfpjt$5v1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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