Imaginary<T>.Log Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Log( | Returns the natural logarithm of an imaginary number. |
Log( | Returns the logarithm of an imaginary number to the specified base. |
Log(Imaginary<T>)
public static Complex<T> Log(
Imaginary<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 an imaginary 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(Imaginary<T>) always lies between -Pi and Pi.
This method requires that the operand type supports real arithmetic.
Log(Imaginary<T>, Imaginary<T>)
public static Complex<T> Log(
Imaginary<T> z,
Imaginary<T> newBase
)
Parameters
- z Imaginary<T>
- A complex number whose logarithm is to be calculated.
- newBase Imaginary<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(Imaginary<T>, Imaginary<T>) returns the logarithm with the smallest Magnitude.
This method requires that the operand type supports real arithmetic.