[
https://issues.apache.org/jira/browse/MATH-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17369418#comment-17369418
]
Gilles Sadowski commented on MATH-1612:
---------------------------------------
bq. maximumIterationCount of 31 and not 63.
Shouldn't it rather be 30, or perhaps even 29 (since a few evaluations are
performed before the counter is incremented)?
> Regression in "SimpsonIntegrator"?
> ----------------------------------
>
> Key: MATH-1612
> URL: https://issues.apache.org/jira/browse/MATH-1612
> Project: Commons Math
> Issue Type: Bug
> Reporter: Gilles Sadowski
> Priority: Major
> Fix For: 4.0
>
>
> The following code:
> {code}
> final UnivariateFunction f = PolynomialsUtils.createHermitePolynomial(deg);
> final double integ = new SimpsonIntegrator(9, 50).integrate(1100, f, 0, 0.5);
> {code}
> terminates as expected, while this one
> {code}
> final UnivariateFunction f = PolynomialsUtils.createHermitePolynomial(deg);
> final double integ = new SimpsonIntegrator(10, 50).integrate(1100, f, 0, 0.5);
> {code}
> raises an exception:
> {noformat}
> TooManyEvaluationsException: illegal state: maximal count (1,100) exceeded:
> evaluations
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)