ln

fun ln(complex: Complex): Complex(source)

Computes the natural logarithm of a complex number. The natural logarithm is calculated using the formula: ln(z) = ln(|z|) + i * arg(z) where |z| is the magnitude and arg(z) is the argument of the complex number.

Return

A new instance of Complex representing the natural logarithm of the given complex number.

Parameters

complex

The complex number for which the natural logarithm is calculated.