Atom

math.cbrt()

Computes the real cube root.

Signature

math.cbrt(x)

Parameters

One number.

Returns

f64.

Behavior

Accepts negative input.

Errors

Requires a number.

Example

Atom
use math
assert(math.abs(math.cbrt(-8) + 2) < 0.000001)