cuberoot function

Cube-root that retains its argument's sign

Cube-root that retains its argument's sign

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

cuberoot(x)

Arguments

  • x: Numeric vector.

Returns

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)
  • Maintainer: Gerrit Eichner
  • License: GPL-3
  • Last published: 2017-10-04