NAME
math.h —
mathematical declarations
SYNOPSIS
#include <math.h>
DESCRIPTION
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.
- M_E
- Value of e
- M_LOG2E
- Value of log 2 e
- M_LOG10E
- Value of log 10 e
- M_LN2
- Value of log e 2
- M_LN10
- Value of log e 10
- M_PI
- Value of
- M_PI_2
- Value of /2
- M_PI_4
- Value of /4
- M_1_PI
- Value of 1/
- M_2_PI
- Value of 2/
- M_2_SQRTPI
- Value of 2/
- M_SQRT2
- Value of 2
- M_SQRT1_2
- Value of 1/ 2
The header defines the following symbolic constants:
- MAXFLOAT
- Value of maximum non-infinite single-precision floating point number.
- HUGE_VAL
- 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;
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
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) .