MATH.H(7,F) AIX Technical Reference MATH.H(7,F)
-------------------------------------------------------------------------------
math.h
PURPOSE
Defines math subroutines and constants.
SYNOPSIS
#include
DESCRIPTION
This header file contains declarations of all the subroutines in the Math
Library (libm.a) and of various subroutines in the Standard C Library (libc.a)
that return floating-point values.
It defines the structure and constants for the matherr error-handling mechanism
used by the math subroutines. (See "matherr" for details about this
mechanism.)
Among other things, math.h defines the following constant, which is used as an
error-return value:
HUGE The maximum value of a single-precision floating-point number.
The following mathematical constants are also defined for your convenience:
M_E The base of natural logarithms (e)
M_LOG2E The base-2 logarithm of e (log[2] e)
M_LOG10E The base-10 logarithm of e (log[10] e)
M_LN2 The natural logarithm of 2 (log[e] 2)
M_LN10 The natural logarithm of 10 (log[e] 10)
M_PI pi, the ratio of the circumference of a circle to its diameter
M_PI_2 The value of pi / 2
M_PI_4 The value of pi / 4
M_1_PI The value of 1 / pi
M_2_PI The value of 2 / pi
M_2_SQRTPI The value of 2 divided by the positive square root of pi
Processed November 7, 1990 MATH.H(7,F) 1
MATH.H(7,F) AIX Technical Reference MATH.H(7,F)
M_SQRT2 The positive square root of 2
M_SQRT1_2 The positive square root of 1/2.
The math.h file contains an #include statement that imbeds another header file
named values.h. This header file defines a number of machine-dependent
constants, and it is discussed on page values.h-1.
FILES
/usr/include/math.h
/usr/include/values.h
RELATED INFORMATION
In this book: "matherr" and "values.h."
Processed November 7, 1990 MATH.H(7,F) 2