Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12166 > unrolled thread

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

Started byBill Rowe <readnews@sbcglobal.net>
First post2012-10-24 07:43 +0000
Last post2012-10-24 07:43 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: How do I assign the solution obtained by FindRoot to a variable? Bill Rowe <readnews@sbcglobal.net> - 2012-10-24 07:43 +0000

#12166 — Re: How do I assign the solution obtained by FindRoot to a variable?

FromBill Rowe <readnews@sbcglobal.net>
Date2012-10-24 07:43 +0000
SubjectRe: How do I assign the solution obtained by FindRoot to a variable?
Message-ID<k6867r$mdd$1@smc.vnet.net>
On 10/23/12 at 12:54 AM, nansheng.lin@gmail.com (NS Lin) wrote:

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

Here is a simple example of how to do that

In[1]:= y = x /. FindRoot[x^2 - 10, {x, 2}];
y

Out[2]= 3.16228

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web