@@ -174,7 +174,7 @@ protected static BigDecimal sqrtBigNumber(BigInteger value) {
174
174
@ Override
175
175
public double doPI (PInt value ) {
176
176
BigInteger bValue = value .getValue ();
177
- checkMathDomainError (bValue .compareTo (BigInteger .ZERO ) == - 1 );
177
+ checkMathDomainError (bValue .compareTo (BigInteger .ZERO ) < 0 );
178
178
return sqrtBigNumber (bValue ).doubleValue ();
179
179
}
180
180
@@ -1252,7 +1252,7 @@ public abstract static class AcoshNode extends MathDoubleUnaryBuiltinNode {
1252
1252
@ Override
1253
1253
public double doPI (PInt value ) {
1254
1254
BigInteger bValue = value .getValue ();
1255
- checkMathDomainError (bValue .compareTo (BigInteger .ONE ) == - 1 );
1255
+ checkMathDomainError (bValue .compareTo (BigInteger .ONE ) < 0 );
1256
1256
1257
1257
BigDecimal sqrt = SqrtNode .sqrtBigNumber (bValue .multiply (bValue ).subtract (BigInteger .ONE ));
1258
1258
BigDecimal bd = new BigDecimal (bValue );
@@ -1526,7 +1526,7 @@ public double logDN(double value, @SuppressWarnings("unused") PNone novalue,
1526
1526
public double logPIN (PInt value , @ SuppressWarnings ("unused" ) PNone novalue ,
1527
1527
@ Cached ("createBinaryProfile()" ) ConditionProfile doNotFit ) {
1528
1528
BigInteger bValue = value .getValue ();
1529
- raiseMathError (doNotFit , bValue .compareTo (BigInteger .ZERO ) == - 1 );
1529
+ raiseMathError (doNotFit , bValue .compareTo (BigInteger .ZERO ) < 0 );
1530
1530
return logBigInteger (bValue );
1531
1531
}
1532
1532
@@ -1584,7 +1584,7 @@ public double logPID(PInt value, double base,
1584
1584
@ Cached ("createBinaryProfile()" ) ConditionProfile doNotFit ,
1585
1585
@ Cached ("createBinaryProfile()" ) ConditionProfile divByZero ) {
1586
1586
BigInteger bValue = value .getValue ();
1587
- raiseMathError (doNotFit , bValue .compareTo (BigInteger .ZERO ) == - 1 || base <= 0 );
1587
+ raiseMathError (doNotFit , bValue .compareTo (BigInteger .ZERO ) < 0 || base <= 0 );
1588
1588
double logBase = countBase (base , divByZero );
1589
1589
return logBigInteger (bValue ) / logBase ;
1590
1590
}
@@ -1607,7 +1607,7 @@ public double logPIPI(PInt value, PInt base,
1607
1607
@ Cached ("createBinaryProfile()" ) ConditionProfile divByZero ) {
1608
1608
BigInteger bValue = value .getValue ();
1609
1609
BigInteger bBase = base .getValue ();
1610
- raiseMathError (doNotFit , bValue .compareTo (BigInteger .ZERO ) == - 1 || bBase .compareTo (BigInteger .ZERO ) <= 0 );
1610
+ raiseMathError (doNotFit , bValue .compareTo (BigInteger .ZERO ) < 0 || bBase .compareTo (BigInteger .ZERO ) <= 0 );
1611
1611
double logBase = countBase (bBase , divByZero );
1612
1612
return logBigInteger (bValue ) / logBase ;
1613
1613
}
0 commit comments