Admin Production ni-theme
Current Publication

sqrt

LabWindows/CVI

sqrt

double sqrt (double inputValue);

Purpose

Computes the nonnegative square root of the specified argument. A negative argument will cause a domain error.

Parameters

Input
Name Type Description
inputValue double Contains the value from which the square root is taken. Entering a negative value causes a domain error.

Return Value

Name Type Description
result double Contains the resulting square root value. If inputValue is negative, sqrt returns NaN and sets errno to EDOM .

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Examples

Refer to the following examples that use the sqrt function:

  • analysis\2dfft.cws

    Open example
  • analysis\iirfiltr.cws

    Open example
  • OpenMP\2dfft_omp.cws

    Open example