Quad.Log 1Plus X Method
Returns the natural logarithm of 1 plus the argument.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
The logarithm of 1 plus x.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static Quad Log1PlusX(
Quad x
)
Parameters
- x Quad
- A real number greater than -1.
Return Value
QuadThe logarithm of 1 plus x.
Remarks
For small values of x, the logarithm of 1 + x is close to zero. When the logarithm is evaluated directly, this can cause significant round-off error. This function resolves this problem by using a direct approximations for x close to 1.
Exceptions
Argument | x is less than or equal to -1. |