Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
Files math(4)
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.
The following symbolic constants are defined:
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.
HUGE_VALF Specifies a positive float 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_VALF is the same
as the value of FLT_MAX. For IEEE floating-point data, the value of
HUGE_VALF is positive infinity of type float.
HUGE_VALL For IEEE floating-point environments only, specifies a positive long double
expression. Used as an error indicator when returned as a value for mathematics
library functions.
INFINITY For IEEE floating-point environments only, specifies a constant expression of
type float representing positive or unsigned infinity, if available; else to a postive
constant of type float that overflows at translation time.
MAXFLOAT Specifies the value of the maximum noninfinite single-precision floating-point
number.
For Tandem-format floating-point data, the value of MAXFLOAT is the same as
the value of DBL_MAX. For IEEE floating-point data, the value of MAX-
FLOAT 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.
527186-023
Hewlett-Packard Company 11−19