The GitHub Actions job "Java CI" on 
commons-numbers.git/NUMBERS-214-bound-default-iterations has failed.
Run started by GitHub user akashchamp (triggered by akashchamp).

Head commit for run:
f322f30e893341ae66e407e17ae2985d93f8735a / Akash Kumar 
<[email protected]>
NUMBERS-214: Bound the default max iterations for GeneralizedContinuedFraction

"GeneralizedContinuedFraction" used Integer.MAX_VALUE as the default
number of iterations for the overloads of "value" (and the derived
"ContinuedFraction.evaluate(double,double)") that do not accept an
explicit maxIterations argument. For a fraction that does not
converge this caused an ArithmeticException to be raised only after
an excessive runtime (~12-15s for a simple non-converging generator
on this hardware) instead of failing fast.

Lower the default to 1,000,000, as suggested in the issue. A caller
that requires more terms to converge can still use the existing
4-argument overloads with an explicit maxIterations; those overloads,
and all current internal callers (BoostBeta, BoostGamma), already
pass their own maxIterations and are unaffected by this change.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

Report URL: https://github.com/apache/commons-numbers/actions/runs/36179939516

With regards,
GitHub Actions via GitBox

Reply via email to