Logarithm of positive real number returns complex number

Issue #732 new
Tey' created an issue
#!

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)

  1. Log in to comment