orld.wolfram.com/NaturalLogarithm.html" TARGET="_top"> natural logarithm of this complex number. Implements the formula:
log(a + bi) = ln(|a + bi|) + arg(a + bi)i
where ln on the right hand side is {@link FastMath#log}, {@code |a + bi|} is the modulus, {@link Complex#abs}, and {@code arg(a + bi) = }{@link FastMath#atan2}(b, a).
Returns {@link Complex#NaN} if either real or imaginary part of theinput argument is {@code NaN}.
Infinite (or critical) values in real or imaginary parts of the input may result in infinite or NaN values returned in parts of the result.
Examples: log(1 ± INFINITY i) = INFINITY ± (π/2)i log(INFINITY + i) = INFINITY + 0i log(-INFINITY + i) = INFINITY + πi log(INFINITY ± INFINITY i) = INFINITY ± (π/4)i log(-INFINITY ± INFINITY i) = INFINITY ± (3π/4)i log(0 + 0i) = -INFINITY + 0i
@return the value
ln this
, the natural logarithmof {@code this}.
@since 1.2