- edited description
Logarithm of positive real number returns complex number
Issue #732
new
#!
ln(2**94)
= 65,15583497263485908522
ln(2**95)
= 65,84898215319480439464+7,74596669241483377036e-41j
ln(2**96)
= 66,54212933375474970405
The second expression ln(2**95)
returns an imaginary part which should not exist. It's so small that I guess it's a precision issue, but since it does not happen with ln(2**96)
, I open a ticket just in case it's not the case.
@polwel @thadrien can you check it out and fix or invalidate this issue please?
Of course, complex numbers have to be enabled to produce that behavior.
Comments (6)
-
reporter -
It is also fine when using the
<<
operator instead of**
. -
reporter @polwel nice catch,
#733also seems to confirm the issue comes from the power operator. -
repo owner Issue
#733was marked as a duplicate of this issue. -
repo owner -
repo owner - marked as major
- Log in to comment