cuberoot: Cube-root that retains its argument's sign

Description Usage Arguments Value Examples

Description

Computes (x_1^{1/3}, …, x_n^{1/3}) with x_i^{1/3} being negative if x_i < 0.

Usage

1

Arguments

x

Numeric vector.

Value

Vector of same length and mode as input.

Examples

1
2
3
kader:::cuberoot(x = c(-27, -1, -0, 0, 1, 27))

curve(kader:::cuberoot(x), from = -27, to = 27)

kader documentation built on May 1, 2019, 10:13 p.m.