Julia Square Root

Julia Square Root is used to find the square root of a number.

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

Example 1 – Julia Square Root

Square root function with Integer

julia> x = 25
25

julia> sqrt(x)
5.0

julia> x = 23
23

julia> sqrt(x)
4.795831523312719

Square root function with Floating Point Numbers

julia> x = 2.2
2.2

julia> sqrt(x)
1.4832396974191326

Square root function with Complex Numbers

julia> x = 2 + 3im
2 + 3im

julia> sqrt(x)
1.6741492280355401 + 0.8959774761298381im

Conclusion

In this Julia Tutorial, we learned about Julia Square Root function and its usage with the help of example scripts.