Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8087
| From | danl@wolfram.com |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: FindRoot and parameters in NIntegrate |
| Date | 2012-01-22 12:29 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jfgves$pk4$1@smc.vnet.net> (permalink) |
| References | <jfe3jq$a16$1@smc.vnet.net> |
(1) Only let the NIntegrate work when parameters have numeric values.
(2) Specify a finite AccuracyGoal so as to avoid messages about trouble with the result and error estimates.
In[272]:=
integ[a_?NumericQ, b_?NumericQ] :=
NIntegrate[a + b x, {x, 0, 1}, AccuracyGoal -> 10]
In[273]:= FindRoot[{1 + a + b, integ[a, b]}, {{a, 0}, {b, 0}}]
Out[273]= {a -> 1., b -> -2.}
Daniel Lichtblau
Wolfram Research
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
FindRoot and parameters in NIntegrate gac <g.crlsn@gmail.com> - 2012-01-21 10:21 +0000 Re: FindRoot and parameters in NIntegrate danl@wolfram.com - 2012-01-22 12:29 +0000 Re: FindRoot and parameters in NIntegrate A Retey <awnl@gmx-topmail.de> - 2012-01-22 12:34 +0000
csiph-web