MathGroup Archive 2012

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128485] Re: How do I assign the solution obtained by FindRoot to
  • From: "Harvey P. Dale" <hpd at hpdale.org>
  • Date: Wed, 24 Oct 2012 03:32:47 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <20121023045437.AE4F2685C@smc.vnet.net>

	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?