FUNCTION REFERENCE
log1p
Accurate log(1 + x) for small x.
Accurate log(1 + x) for small x.
Syntax
log1p(X)Returns log(1 + x) without losing precision near zero.
Example
log1p(0) % 0Differences from MATLAB: Real double 2-D arrays, one output. Values below -1 are rejected.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.