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

expm1(RObject) -- exponential minus 1 of an R object

Description

Compute e^x - 1 for each element of an R numeric vector, calling R's expm1. This is more accurate than exp(x) - 1 for small values of x.

i1 : expm1 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.00100050016670834

o1 : RObject of type double

See also

Ways to use this method:


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