Table Of Contents

Square Root (Multirate Dataflow)

Last Modified: September 28, 2017

Computes the square root of an input value.

connector_pane_image
datatype_icon

x

An input to this operation.

This input supports scalar numbers and fixed-size 1-dimensional arrays of numbers.

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.

datatype_icon

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:

sqrt ( x ) = | x |
arg ( sqrt ( x ) ) = arg ( x ) 2

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

| x | = a 2 + b 2
arg ( x ) = 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

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics