MATH.H(7) Miscellaneous Information Manual MATH.H(7)

math.hmathematical declarations

#include <math.h>

The <math.h> header provides for the following constants. The values are of type double and are accurate within the precision of the double type.

Value of e
Value of log 2 e
Value of log 10 e
Value of log e 2
Value of log e 10
Value of
Value of /2
Value of /4
Value of 1/
Value of 2/
Value of 2/
Value of 2
Value of 1/ 2

The header defines the following symbolic constants:

Value of maximum non-infinite single-precision floating point number.
A positive double expression, not necessarily representable as a float . Used as an error value returned by the mathematics library. HUGE_VAL evaluates to positive infinity on systems supporting the ANSI/IEEE Std 754:1985 standard.

The following are declared as functions and may also be defined as macros. Function prototypes must be provided for use with an ISO C compiler. double acos(double); double asin(double); double atan(double); double atan2(double, double); double ceil(double); double cos(double); double cosh(double); double exp(double); double fabs(double); double floor(double); double fmod(double, double); double frexp(double, int *); double ldexp(double, int); double log(double); double log10(double); double modf(double, double *); double pow(double, double); double sin(double); double sinh(double); double sqrt(double); double tan(double); double tanh(double); double erf(double); double erfc(double); double gamma(double); double hypot(double, double); double j0(double); double j1(double); double jn(int, double); double lgamma(double); double y0(double); double y1(double); double yn(int, double); int isnan(double); double acosh(double); double asinh(double); double atanh(double); double cbrt(double); double expm1(double); int ilogb(double); double log1p(double); double logb(double); double nextafter(double, double); double remainder(double, double); double rint(double); double scalb(double, double);

The following external variable is defined: extern int signgam;

None.

None.

acos(3) , acosh(3) , asin(3) , atan(3) , atan2(3) , cbrt(3) , ceil(3) , cos(3) , cosh(3) , erf(3) , exp(3) , expm1(3) , fabs(3) , floor(3) , fmod(3) , frexp(3) , hypot(3) , ilogb(3) , isnan(3) , j0(3) , ldexp(3) , lgamma(3) , log(3) , log10(3) , log1p(3) , logb(3) , modf(3) , nextafter(3) , pow(3) , remainder(3) , rint(3) , scalb(3) , sin(3) , sinh(3) , sqrt(3) , tan(3) , tanh(3) , y0(3) .

February 1997 posix.fail