Julia Cube Root Function

Julia Cube Root is used to find the cube root of a number or one-third power of a number.

In this tutorial, we will learn how to use the square root function sqrt() with examples.

Example 1 – Julia Cube Root Function

With Integer

julia> x = 65
65

julia> cbrt(x)
4.020725758589058

With Floating Point Numbers

julia> x = 16.5
16.5

julia> cbrt(x)
2.5458216848297446

Cube root function cannot be applied with Complex Numbers as arguments.

ADVERTISEMENT

Conclusion

In this Julia Tutorial, we learned the syntax and usage of Cube Root function in Julia.