SQRT
sqrt( a )
sqrt | "square root" |
a | a number |
The sqrt( a ) function is used to return the square root of the number provided.
For example, let's first square a number, then use sqrt() to reverse it:
--two ways to square a number
a = 4*4 --16
b = 4^2 --16
c = sqrt(b) --square root
print(c) --4
Images in this Guide by NerdyTeachers is licensed under CC BY-SA 4.0

748
12 May 2023