|MATLAB Function Reference|
log(1+x) accurately for small values of
y = log1p(x) computes
log(1+x), compensating for the roundoff in
1+x. log1p(x) is more accurate than log(1+x) for small values of x. For small
log1p(x) is approximately
log(1+x) can be zero.
© 1994-2005 The MathWorks, Inc.