Open System Services System Calls Reference Manual (G06.25+, H06.03+)
Files math(4)
NAME
math - Specifies the mathematical constants
SYNOPSIS
#include <math.h>
DESCRIPTION
The math.h header file defines symbolic names and constant values of type double.
The symbolic names are:
HUGE_VAL Specifies a positive double expression that cannot necessarily be represented as
a type float value. Used as an error indicator when returned as a value for
mathematics library functions.
For Tandem-format floating-point data, the value of HUGE_VAL is
DBL_MAX. For IEEE floating-point data, the value of HUGE_VAL is positive
infinity of type double.
MAXFLOAT Specifies the value of the maximum noninfinite single-precision floating-point
number.
For Tandem-format floating-point data, the value of MAXFLOAT is
DBL_MAX. For IEEE floating-point data, the value of MAXFLOAT is also
DBL_MAX, but the value of DBL_MAX differs between the two formats.
Refer to the float(4) reference page for more information about DBL_MAX.
The following constants of type double are accurate within the precision of the double type:
M_E Specifies the value of e.
M_LN2 Specifies the value of log to the base e of 2.
M_LN10 Specifies the value of log to the base e of 10.
M_LOG2E Specifies the value of log to the base 2 of e.
M_LOG10E Specifies the value of log to the base 10 of e.
M_PI Specifies the value of pi.
M_PI_2 Specifies the value of pi divided by 2.
M_PI_4 Specifies the value of pi divided by 4.
M_SQRT2 Specifies the value of the square root of 2.
M_SQRT1_2 Specifies the value of 1 divided by the square root of 2.
M_1_PI Specifies the value of 1 divided by pi.
M_2_PI Specifies the value of 2 divided by pi.
M_2_SQRTPI Specifies the value of 2 divided by the square root of pi.
RELATED INFORMATION
Files: float(4).
527186-003 Hewlett-Packard Company 11−17