The SQR
command (short for "square root") is a mathematical function that
is used to calculate the square root of a number. In other words, given a number
x
, the command SQR(x)
returns the number that, when multiplied by itself,
gives the result x
.
The SQR
command has many applications in programming: it is used in any
calculation that requires the calculation of the square root, such as in the
Pythagorean theorem. The square root is present in many physics formulas,
such as in the calculation of velocity. It is used also to calculate the
lengths of segments or areas of geometric figures, and in many statistical
calculations, such as in the calculation of standard deviation.
The square root of a negative number is not defined in real numbers. If you
try to calculate the square root of a negative number, the result is indefinite.
Moreover, the function is defined in the integer numbers domain.
= SQR(expression)
If you have found a problem with this keyword, if you think there is a bug or, more
simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!
open an issue
BACK TO KEYWORDS