Macaulay2 » Documentation
Packages » RInterface » RObject » log1p(RObject)
next | previous | forward | backward | up | index | toc

log1p(RObject) -- natural logarithm of 1 plus an R object

Description

Compute log(1 + x) for each element of an R numeric vector, calling R's log1p. This is more accurate than log(1 + x) for small values of x.

i1 : log1p RObject 0.001

o1 = [1] 0.0009995003

o1 : RObject of type double

See also

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/RInterface/doc/exp-log.m2:140:0.