Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8058
| From | gac <g.crlsn@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | FindRoot and parameters in NIntegrate |
| Date | 2012-01-21 10:21 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jfe3jq$a16$1@smc.vnet.net> (permalink) |
I am using Mathematica 8 to solve for parameters in an integral and an auxiliary equation. A prototypical problem is
FindRoot[{1 + a + b , NIntegrate[a + b x, {x, 0, 1}]}, {{a, 0}, {b, 0}}]
Mathematica reports the correct answer for the parameters a and b:
{a -> 1., b -> -2.}
But it also reports two error messages:
NIntegrate::inumr: The integrand a+b x has evaluated to non-numerical values for all sampling points in the region with boundaries {{0,1}}. >>
NIntegrate::izero: Integral and error estimates are 0 on all integration subregions. Try increasing the value of the MinRecursion option. If value of integral may be 0, specify a finite value for the AccuracyGoal option. >>
I would appreciate any advice or comments on this problem or the error messages.
Thanks.
gac
Back to comp.soft-sys.math.mathematica | Previous | Next — 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