Skip to main content

builtin_cbrt

Function builtin_cbrt 

Source
fn builtin_cbrt(
    args: &[RValue],
    _: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Cube root.

Computes the real cube root of x. Unlike x^(1/3), this correctly handles negative values: cbrt(-8) = -2.

@param x numeric vector @return numeric vector of cube roots