HP-UX Reference (11i v2 04/09) - 5 Miscellaneous Topics (vol 9)

m
math(5) math(5)
MATH_ERREXCEPT
Indicates support for the ISO/IEC C99 exception flag specification.
math_errhandling
Defined to be MATH_ERRNO if the
+Olibmerrno compiler option (not the default) is
used, or defined to be
MATH_ERREXCEPT
otherwise.
It defines the following mathematical constants (type double) for user convenience:
M_E The base of natural logarithms (e).
M_LOG2E The base-2 logarithm of e.
M_LOG10E The base-10 logarithm of e.
M_LN2 The natural logarithm of 2.
M_LN10 The natural logarithm of 10.
M_PI The ratio of the circumference of a circle to its diameter. (There are also several frac-
tions of Pi, its reciprocal, and its square root:
M_PI_2, M_PI_4, M_1_PI, M_2_PI,
and
M_2_SQRTPI).
M_SQRT2 The positive square root of 2.
M_SQRT1_2
The positive square root of 1/2.
For the definitions of various machine-dependent constants, see the description of the
<values.h>
header file.
To use one of the types
extended or quad, or one of the macros
HUGE_VALW or HUGE_VALQ, compile
with the
-fpwidetypes option.
FILES
/usr/include/math.h
SEE ALSO
intro(3), complex(5), fenv(5), values(5).
STANDARDS CONFORMANCE
<math.h>: SVID3, XPG4.2, ANSI C, ISO/IEC C99
HP-UX 11i Version 2: September 2004 2 Hewlett-Packard Company Section 5181