# log1mexp

From DPQ v0.3-3
by Martin Maechler

##### Compute f(a) = \(\mathrm{log}\)(1 - \(\mathrm{exp}\)(-a)) Numerically Optimally

Compute f(a) = log(1 - exp(-a)) quickly and numerically accurately.

- Keywords
- math

##### Usage

`log1mexp(x)`

##### Arguments

- x
numeric vector of positive values.

##### References

Martin M<U+00E4>chler (2012). Accurately Computing \(\log(1-\exp(-|a|))\); https://CRAN.R-project.org/package=Rmpfr/vignettes/log1mexp-note.pdf.

##### See Also

The `log1mexp()`

function in CRAN package copula,
and the corresponding vignette (in the ‘References’).

*Documentation reproduced from package DPQ, version 0.3-3, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.