Skip to content

Commit

Permalink
fixed files form Math #25
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent d39ea5c commit fa8dd33
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,11 @@ private void guessAOmega() {
}
a = 0.5 * (yMax - yMin);
} else {
if (c2 == 0) {
// In some ill-conditioned cases (cf. MATH-844), the guesser
// procedure cannot produce sensible results.
throw new MathIllegalStateException(LocalizedFormats.ZERO_DENOMINATOR);
}

a = FastMath.sqrt(c1 / c2);
omega = FastMath.sqrt(c2 / c3);
Expand Down

0 comments on commit fa8dd33

Please sign in to comment.