Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Square Root Function

NI LabVIEW 8.6 Help
June 2008

NI Part Number:
371361E-01

»View Product Info

Owning Palette: Numeric Functions

Installed With: Base Package

Computes the square root of the input value.

If x is negative, the square root is NaN unless x is complex. If x is a matrix, this function takes the matrix square root of x. The connector pane displays the default data types for this polymorphic function.

Details  Example

x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
sqrt(x) 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.

Square Root Details

When you wire matrix data as an input to this function, a VI that includes subVIs that work with the matrix data type replaces the function. The resulting VI has the same icon but contains a matrix-specific algorithm. The node remains a VI if you disconnect the matrix from the input(s). Wire other data types as inputs to restore the original function. If you wire a data type to a function and that data type causes a basic math operation to fail, the function returns an empty matrix or NaN.

Refer to the Matrix Square Root VI for more information.

Fixed-Point Details

If you wire a fixed-point value to this function, by default LabVIEW configures the integer word length of the square root to avoid overflow. However, because the precision of the square root can be infinite, quantization conditions always occur. Use the Numeric Node Properties dialog box to configure how LabVIEW handles overflow and quantization of fixed-point data.

Example

Refer to the Add - Various Uses VI in the labview\examples\general\functions\Numeric directory for an example of using the Square Root function.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit