Version:

Last Modified: January 12, 2018

Computes the square root of an input value.

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: All devices (only within an optimized FPGA VI)

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