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


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

Re: Parculiarities of FindRoot

Started byBob Hanlon <hanlonr@cox.net>
First post2011-02-01 11:55 +0000
Last post2011-02-01 11:55 +0000
Articles 1 — 1 participant

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


Contents

  Re: Parculiarities of FindRoot Bob Hanlon <hanlonr@cox.net> - 2011-02-01 11:55 +0000

#15772 — Re: Parculiarities of FindRoot

FromBob Hanlon <hanlonr@cox.net>
Date2011-02-01 11:55 +0000
SubjectRe: Parculiarities of FindRoot
Message-ID<ii8sam$2pb$1@smc.vnet.net>
Func can only be evaluated with a numeric argument, Use

Func[y_?NumericQ] := x^2 /. FindRoot[x + y == 0, {x, 0.}]


Bob Hanlon

---- Tianhui Li <tianhuil@princeton.edu> 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.}]

Warm Regards,
Michael Li
Bendheim Center for Finance
Princeton University
Princeton, NJ 08544

[toc] | [standalone]


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


csiph-web