Returns the natural logarithm of z.
pub fn log(z: anytype) Complex(@TypeOf(z.re, z.im))
pub fn log(z: anytype) Complex(@TypeOf(z.re, z.im)) { const T = @TypeOf(z.re, z.im); const r = cmath.abs(z); const phi = cmath.arg(z); return Complex(T).init(@log(r), phi); }