Skip to content

Commit

Permalink
fixed files form Math #46
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 0f82612 commit 32af80f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/Math/46/org/apache/commons/math/complex/Complex.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public Complex divide(Complex divisor)

if (divisor.isZero) {
// return isZero ? NaN : INF; // See MATH-657
return isZero ? NaN : INF;
return NaN;
}

if (divisor.isInfinite() && !isInfinite()) {
Expand Down Expand Up @@ -294,7 +294,7 @@ public Complex divide(double divisor) {
}
if (divisor == 0d) {
// return isZero ? NaN : INF; // See MATH-657
return isZero ? NaN : INF;
return NaN;
}
if (Double.isInfinite(divisor)) {
return !isInfinite() ? ZERO : NaN;
Expand Down

0 comments on commit 32af80f

Please sign in to comment.