Gilles created MATH-1388:
----------------------------

             Summary: Default number of iterations in integrators
                 Key: MATH-1388
                 URL: https://issues.apache.org/jira/browse/MATH-1388
             Project: Commons Math
          Issue Type: Bug
            Reporter: Gilles
            Priority: Trivial
             Fix For: 4.0


In {{TrapezoidIntegrator}} and {{MidPointIntegrator}}, the default value for 
the number of iterations is set to 64.

At iteration 64, the number of points would be 2^63, whereas the [largest 
positive long value is 2^63 - 
1|https://docs.oracle.com/javase/7/docs/api/java/lang/Long.html#MAX_VALUE].

Even if the default is set to 63, is such a huge value reasonable?

The default value should be defined as a "private" field.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to