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

o1 = [1] 0.0010005

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:95:0.