log

fnComplex!T log(T)(Complex!T x) @safe pure nothrow @nogc

Calculate the natural logarithm of x. The branch cut is along the negative axis.

Parameters

xA complex number

Returns

The complex natural logarithm of x
x log(x)
(-0, +0) (-∞, π)
(+0, +0) (-∞, +0)
(any, +∞) (+∞, π/2)
(any, NaN) (NaN, NaN)
(-∞, any) (+∞, π)
(+∞, any) (+∞, +0)
(-∞, +∞) (+∞, 3π/4)
(+∞, +∞) (+∞, π/4)
(±∞, NaN) (+∞, NaN)
(NaN, any) (NaN, NaN)
(NaN, +∞) (+∞, NaN)
(NaN, NaN) (NaN, NaN)