Last Modified: September 28, 2017

Computes the square root of an input value.

## 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:

$\mathrm{sqrt}\left(x\right)=\sqrt{\left|x\right|}$

$\mathrm{arg}\left(\mathrm{sqrt}\right(x\left)\right)=\frac{\mathrm{arg}\left(x\right)}{2}$

where |**x**| is the magnitude of **x** and arg(**x**) is the phase of **x**:

$\left|x\right|=\sqrt{{a}^{2}+{b}^{2}}$

$\mathrm{arg}\left(x\right)=\mathrm{arctan}2(b,a)$

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.

**Where This Node Can Run: **

Desktop OS: Windows

FPGA: DAQExpress does not support FPGA devices

Web Server: Supported in VIs that run in a web application

### Recently Viewed Topics