Compute Natural Logarithm x + 1

Compute an implementation-dependent approximation to the natural logarithm of 1 + x. The result is computed in a way that is accurate even when the value of x is close to zero.

Examples in JavaScript