Complex<T>.Log Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Log(Complex<T>) Returns the natural logarithm of a complex number.
Log(Complex<T>, Complex<T>) Returns the logarithm of a complex number to the specified base.

Complex<T>.Log(Complex<T>)

Returns the natural logarithm of a complex number.
C#
public static Complex<T> Log(
	Complex<T> z
)

Parameters

z  Complex<T>
A complex number.

Return Value

Complex<T>
The natural logarithm of z.

Remarks

The real element of the logarithm of a complex number is equal to the logarithm of its Magnitude. The imaginary element of the logarithm of a complex number is equal to the Phase of the complex number. As a result, the imaginary element is only defined up to a multiple of two times Pi. The imaginary element returned by Log(Complex<T>) always lies between -Pi and Pi.

This method requires that the operand type supports real arithmetic.

Complex<T>.Log(Complex<T>, Complex<T>)

Returns the logarithm of a complex number to the specified base.
C#
public static Complex<T> Log(
	Complex<T> z,
	Complex<T> newBase
)

Parameters

z  Complex<T>
A complex number whose logarithm is to be calculated.
newBase  Complex<T>
A complex that is the base of the logarithm.

Return Value

Complex<T>
The base newBase logarithm of z.

Remarks

The base newBase logarithm of a complex number is only defined up to a multiple of 2 Pi i / newBase. Log(Complex<T>, Complex<T>) returns the logarithm with the smallest Magnitude.

This method requires that the operand type supports real arithmetic.

See Also