IComplexElementaryFunctions<T, U>.Log Method

Definition

Namespace: Numerics.NET.Generic
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

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

Log(T, T)

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

Parameters

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

Return Value

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(T, T) returns the logarithm with the smallest IComplexOperations<T, U>.

This method requires that the operand type supports real arithmetic.

See Also