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

--error or time limit reached in conversion of output to net: type 'debugError()' to run it again; will try conversion to string

o1 = 0.000999500333083533

o1 : RObject of type double

See also

Ways to use this method:


The source of this document is in RInterface/doc/exp-log.m2:140:0.