Admin Production ni-theme
Current Publication

cos

LabWindows/CVI

cos

double cos (double inputValue);

Purpose

Computes the cosine of the specified argument. The argument must be measured in radians.

Parameters

Input
Name Type Description
inputValue double Contains the argument to the function. This value must be measured in radians.

Return Value

Name Type Description
result double Contains the resulting cosine value. This value is valid only if inputValue is measured in radians. The function returns NaN when infinity or an unrepresentable number is used as the argument to the function.

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 cos function:

  • analysis\nonlnfit.cws

    Open example
  • userint\gridview.cws

    Open example