You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2016/09/30 12:54:20 UTC

[jira] [Created] (MATH-1388) Default number of iterations in integrators

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)