Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15801 > unrolled thread
| Started by | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| First post | 2011-02-01 11:53 +0000 |
| Last post | 2011-02-01 11:53 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: Parculiarities of FindRoot Bill Rowe <readnews@sbcglobal.net> - 2011-02-01 11:53 +0000
| From | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| Date | 2011-02-01 11:53 +0000 |
| Subject | Re: Parculiarities of FindRoot |
| Message-ID | <ii8s85$2na$1@smc.vnet.net> |
On 1/31/11 at 3:24 AM, tianhuil@princeton.edu (Tianhui Li) wrote:
>Here's a question for the group: in the following function, Func
>seems to evaluate numerical arguments correctly and *works* when you
>throw it into a FindRoot. But the second command generates a lot of
>warning messages. Does anyone understand why?
>Func[y_] := x^2 /. FindRoot[x + y == 0, {x, 0.}]
>Func[.2]
>FindRoot[Func[z], {z, 0.}]
FindRoot is a *numeric* root finder. When you do Func[.2] you
provide a numeric value and FindRoot can find a numeric
solution. When you do FindRoot[z] you are supplying a symbolic
value and it is not possible for FindRoot to get a numeric solution.
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web