log

fun log(x: Complex, base: Double): Complex(source)

Computes the logarithm of a complex number with a specified base. The logarithm with base b is calculated using the formula: log_b(z) = ln(z) / ln(b) where z is the complex number and b is the base.

Return

A new instance of Complex representing the logarithm of the given complex number with the specified base.

Parameters

x

The complex number for which the logarithm is calculated.

base

The base of the logarithm (must be positive and not equal to 1).


fun log(x: Complex, base: Complex): Complex(source)

Computes the logarithm of a complex number with a specified complex base. The logarithm with base b is calculated using the formula: log_b(z) = ln(z) / ln(b) where z is the complex number and b is the complex base.

Return

A new instance of Complex representing the logarithm of the given complex number with the specified complex base.

Parameters

x

The complex number for which the logarithm is calculated.

base

The complex base of the logarithm.