Admin Production ni-theme
Current Publication

Mathematics <math.h>

LabWindows/CVI

Mathematics <math.h> Class Help

This class contains functions for making mathematical computations, such as trigonometric, hyperbolic, exponential, logarithmic, and power computations. The functions contained in this class are defined in math.h.

Error Handling

Some of the functions in this class set the global variable errno to a nonzero value if an error occurs. To use the value of errno, include the header file errno.h, initialize errno to zero before the call to the library function, and examine its value after the function call.

Note Note  Although the ANSI standard specifically states that the type of the global variable errno must be an integer, LabWindows/CVI defines errno with an enumeration type so that function panels and the Variables and Call Stack window show error names instead of integer values. If you require that errno be declared as an integer, define the preprocessor symbol DISABLE_ERRNO_ENUM before including errno.h.

You can view specific error numbers that each library function sets in the help for the errno parameter on the function panels.

Library: ANSI C Library