MathGroup Archive 2012

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

Search the Archive

Re: How do I assign the solution obtained by FindRoot to


	If the sought root is, for example, the square root of 2, and the variable is sqrt2:

	sqrt2=x/.FindRoot[x==Sqrt[2],{x,1.4}]

	Best,

	Harvey


-----Original Message-----
From: NS Lin [mailto:nansheng.lin at gmail.com]
Sent: Tuesday, October 23, 2012 12:55 AM
To: mathgroup at smc.vnet.net
Subject: [mg128485] How do I assign the solution obtained by FindRoot to a variable?

I would like to store the root/solution obtained by the FindRoot[] function to a variable.  How can I do that?

Thanks!

NS






  • Prev by Date: How accurate is the solution for high degree algebraic equation?
  • Next by Date: Re: How do I assign the solution obtained by FindRoot to a variable?
  • Previous by thread: Re: How do I assign the solution obtained by FindRoot to a variable?
  • Next by thread: Re: How do I assign the solution obtained by FindRoot to a variable?