Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12166
| From | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: How do I assign the solution obtained by FindRoot to a variable? |
| Date | 2012-10-24 07:43 +0000 |
| Message-ID | <k6867r$mdd$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: How do I assign the solution obtained by FindRoot to a variable? Bill Rowe <readnews@sbcglobal.net> - 2012-10-24 07:43 +0000
csiph-web