Complex<T>.Log Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Overload List
Log( | Returns the natural logarithm of a complex number. |
Log( | Returns the logarithm of a complex number to the specified base. |
Log(Complex<T>)
public static Complex<T> Log(
Complex<T> z
)
Parameters
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.
Log(Complex<T>, Complex<T>)
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.