Links
Comment on page

sqrt

To calculate the square root
Use the function to find the square root of a positive number.
If the number has a negative sign, use the function abs() for example to convert it to a positive number first.

Syntax

sqrt(number)

Return

number

Example

sqrt(x) To calculate the square root of a number x.
1
sqrt(3)
Result: 1.7320508075688772
1
sqrt(9)
Result: 3
1
sqrt(-9)
Result: (invalid)
1
sqrt(abs(9 - 13))
Result: 2

See also

abs, which returns the absolute value of a number
sqr which calculates the square of a number.
Last modified 1yr ago