Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12166 > unrolled thread
| Started by | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| First post | 2012-10-24 07:43 +0000 |
| Last post | 2012-10-24 07:43 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: How do I assign the solution obtained by FindRoot to a variable? Bill Rowe <readnews@sbcglobal.net> - 2012-10-24 07:43 +0000
| From | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| Date | 2012-10-24 07:43 +0000 |
| Subject | Re: 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
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web