MathN.Log<TNumeric>(TNumeric) Method

Returns the natural (base e) logarithm of a specified number.

Definition

Namespace: Jodosoft.Numerics
Assembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static TNumeric Log<TNumeric>(
	TNumeric x
)
where TNumeric : struct, new(), INumeric<TNumeric>

Parameters

x  TNumeric
The number whose logarithm is to be found.

Type Parameters

TNumeric

Return Value

TNumeric
The natural logarithm of x; that is, ln x, or log e x.

Remarks

May return NaN or Infinity (see Log(Double)). If NaN or Infinity cannot be represented by TNumeric, then a ArithmeticException may be thrown.

See Also