Name: cbrt
Category: Arithmetic
Description:
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
Syntax:
cbrt(x)
cbrt(x, allRoots)
Examples:
cbrt(64)
4
cube(4)
64
cbrt(-8)
-2
cbrt(2 + 3i)
Error: Undefined symbol i
cbrt(8i)
Error: Undefined symbol i
cbrt(8i, true)
Error: Undefined symbol i
cbrt(27 m^3)
3 m
See also: square, sqrt, cube, multiply