math.5 (2010 09)
m
math(5) math(5)
NAME
math - math functions, constants, and types
SYNOPSIS
#include <math.h>
DESCRIPTION
This file contains declarations of all the functions in the Math Library (described in Section (3M)).
It defines the types:
float_t A floating type, at least as wide as
float.
For PA-RISC,
float_t is float.
For Integrity server, if
FLT_EVAL_METHOD
equals 0, float_t is
float;if
FLT_EVAL_METHOD
equals 1, float_t is double;ifFLT_EVAL_METHOD
equals -2, float_t is extended.
double_t A floating type, at least as wide as
double.
For PA-RISC,
double_t is double.
For Integrity server, if
FLT_EVAL_METHOD
equals 0 or 1, double_t is double;
if
FLT_EVAL_METHOD equals -2,
double_t is extended.
For Integrity server, the value of
FLT_EVAL_METHOD
is 0, 1, or -2, according to the use of the compiler
option
-fpeval=float (default), -fpeval=double
,or-fpeval=extended, respectively.
See INTEGRITY SERVERS ONLY section below for additinal types supported on Integrity servers.
It defines the following constants (which, for Integrity server, may be used to initialize statics and aggre-
gates):
NAN A quiet NaN (Not-a-Number) value (type
float).
INFINITY A positive infinity value (type float).
HUGE_VAL The maximum value (type double) representable in the
double type (IEEE posi-
tive infinity).
HUGE_VALF The maximum value (type float) representable in the
float type (IEEE positive
infinity).
HUGE_VALL For Integrity server only, the maximum value (type long double) representable
in the long double type (IEEE positive infinity).
HUGE_VALW For Integrity server only, the maximum value (type extended) representable in
the extended type (IEEE positive infinity). To use HUGE_VALW compile with the
-fpwidetypes option.
HUGE_VALQ For Integrity server only, equivalent to HUGE_VALL. To use HUGE_VALQ compile
with the -fpwidetypes option.
It defines the following integer constants which give special-case values returned by the
ilogb() func-
tions:
FP_ILOGB0 Returned by ilogb() if its argument is zero.
FP_ILOGBNAN Returned by ilogb() if its argument is a NaN.
It defines the following mathematical constants for user convenience. The constants without an l suffix
are of type
double. The constants with an l suffix are of type long double and are available for
Integrity server only.
M_E, M_El The base of natural logarithms (e ).
M_LOG2E, M_LOG2El
The base-2 logarithm of e.
M_LOG10E, M_LOG10El
The base-10 logarithm of e.
M_LN2, M_LN2l The natural logarithm of 2.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1