log1p

log1p(X) calculates log(1+X) accurately for small values of X.

Examples

> X = 1e-16

	[X:1e-016]

> log1p(X)

	[ans:1e-016]

> log(1 + X)

	[ans:0]

Resources

See also

log | log10 | log2