cuberoot {kader}R Documentation

Cube-root that retains its argument's sign

Description

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

Usage

cuberoot(x)

Arguments

x

Numeric vector.

Value

Vector of same length and mode as input.

Examples

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

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



[Package kader version 0.0.8 Index]