sqrt
mathCalculates the square root of a number
Syntax
sqrt(number) Parameters
number (number) The number to calculate the square root of
Returns
number The square root of the input
Examples
Input:
16 | sqrt Output:
4 Input:
sqrt(9) Output:
3 Input:
sqrt(2) Output:
1.414... The sqrt() function calculates the square root of a number. For negative numbers, it returns NaN.
Usage
Use sqrt() for mathematical calculations involving roots, distances, or standard deviation computations.