Sqrt
Sqrt applies the square-root function to its input.
Behavior
Section titled “Behavior”y = sqrt(x)
| Port | Direction | Type |
|---|---|---|
| 0 | Input | f32 or f64 scalar, or a fixed-size array of floats |
| 0 | Output | Same type as input |
Arrays are processed element by element; a negative floating-point input produces NaN.
Parameters
Section titled “Parameters”None.
Example
Section titled “Example”For input x = 9.0, the output is y = 3.0.