expm1s10: Signed 'expm1' With Base 10

View source: R/log1ps.R

expm1s10R Documentation

Signed expm1 With Base 10

Description

Signed expm1 With base 10.

Usage

expm1s10(x)

Arguments

x

Numerical vector.

Details

Compute expm1s10(x) = sign(x) * (10 ^ abs(x) - 1). This function is the inverse of log1ps10.

Value

Numeric vector.

See Also

expm1s log1ps10

Examples

x <- c(-2, -1, -1/10, -0.1/10, 0, 0.1/10, 1/10, 1, 2)
y <- expm1s10(x)
# this test if the inverse is ok
stopifnot(isTRUE(all.equal(x, eflTools::log1ps10(y))))

FrankLef/eflTools documentation built on May 4, 2024, 10:04 p.m.