Parameters, Value
Square root function calculates the square root of numeric values, the input and output is [0, +∞]
.
Syntax:
- Format: sqrt(
<base>
) - Parameters: see table below
- Value: ATTR (number >= 0)
Name | Category | Specification | Description |
---|---|---|---|
base | ATTR(number) | >= 0 | Base |
Common Usage
Example: return the square root of 1.5
return sqrt(1.5)
Example: return 1, 2.5, and 3's square roots
uncollect [1, 2.5, 3] as a
return sqrt(a)