You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When BigComplexMath.sqrt is invoked with an argument that has a negative or zero real part and a zero imaginary part, it throws an ArithmeticException:
Exception in thread "main" java.lang.ArithmeticException: Division undefined
at java.base/java.math.BigDecimal.divide(BigDecimal.java:1831)
at ch.obermuhlner.math.big.BigComplex.divide(BigComplex.java:287)
at ch.obermuhlner.math.big.BigComplexMath.sqrt(BigComplexMath.java:289)
Expected behaviour:
BigComplexMath.sqrt should not throw an ArithmeticException but compute the result (in the above case 0 + 1i) instead.
The text was updated successfully, but these errors were encountered:
noeppi-noeppi
added a commit
to noeppi-noeppi/TuxCalculator
that referenced
this issue
Jun 4, 2023
When
BigComplexMath.sqrt
is invoked with an argument that has a negative or zero real part and a zero imaginary part, it throws anArithmeticException
:Expected behaviour:
BigComplexMath.sqrt
should not throw anArithmeticException
but compute the result (in the above case0 + 1i
) instead.The text was updated successfully, but these errors were encountered: