cbrt
cbrt(x)
cbrt(x, allRoots)
Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned
Try it yourself:
$1 | cbrt(64)
| |
$2 | cube(4)
| |
$3 | cbrt(-8)
| |
$4 | cbrt(2 + 3i)
| |
$5 | cbrt(8i)
| |
$6 | cbrt(8i, true)
| |
$7 | cbrt(27 m^3)
|