Square Root
- Updated2023-02-17
- 2 minute(s) read
Square Root
Computes the square root of an input value.
Inputs/Outputs

x
An input to this operation.
This input supports scalar numbers, arrays or clusters of numbers, arrays of clusters of numbers, and waveforms.
Data Type Changes on FPGA
When you add this node to a document targeted to an FPGA, this input has a default data type that uses fewer hardware resources at compile time.

square root
The square root of the input value.
Behavior with Various x Input Types
square root is a double-precision, floating-point number if x is an integer.
If x is less than 0, sqrt(x) is not a number (NaN), unless x is complex. When x is complex, this node defines the magnitude and phase with the following equations:
where |x| is the magnitude of x and arg(x) is the phase of x:
Data Type Changes on FPGA
When you add this node to a document targeted to an FPGA, this output has a default data type that uses fewer hardware resources at compile time.