Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12160 > unrolled thread
| Started by | "Harvey P. Dale" <hpd@hpdale.org> |
|---|---|
| First post | 2012-10-24 07:32 +0000 |
| Last post | 2012-10-24 07:32 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How do I assign the solution obtained by FindRoot to "Harvey P. Dale" <hpd@hpdale.org> - 2012-10-24 07:32 +0000
| From | "Harvey P. Dale" <hpd@hpdale.org> |
|---|---|
| Date | 2012-10-24 07:32 +0000 |
| Subject | Re: How do I assign the solution obtained by FindRoot to |
| Message-ID | <k685is$m8j$1@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@gmail.com]
Sent: Tuesday, October 23, 2012 12:55 AM
Subject: 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
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web