Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

frexp(3C)

isnan(3C)

bessel(3M)

erf(3M)

exp(3M)

floor(3M)

gamma(3M)

hypot(3M)

matherr(3M)

sinh(3M)

trig(3M)

values(5)

math(5)                                                             math(5)

NAME
     math - mathematical functions and constants

SYNOPSIS
     #include <math.h>

DESCRIPTION
     This header file contains declarations of all the functions in the
     Math Library, as well as various functions in the C Library that
     return floating-point values.

     It defines the structure and constants used by the matherr(3M) error-
     handling mechanisms, including the following constant used as an
     error-return value:

     HUGE         The maximum value of a single-precision floating-point
                  number.

     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.

     ME          The base of natural logarithms (e)
     MLOG2E      The base-2 logarithm of e
     MLOG10E     The base-10 logarithm of e
     MLN2        The natural logarithm of 2
     MLN10       The natural logarithm of 10
     MPI         pi, the ratio of the circumference of a circle to its
                  diameter
     MPI2       pi/2
     MPI4       pi/4
     M1PI       1/pi
     M2PI       2/pi
     M2SQRTPI   2/square root of pi
     MSQRT2      The square root of 2
     MSQRT12    1/square root of 2

     The following mathematical constants are also defined in this header
     file:

     MAXFLOAT     The maximum value of a single-precision floating point
                  number.

     HUGEVAL     Positive infinity of type double (need not be represent-
                  able as float), used to indicate errors.

     For the definitions of various machine-dependent constants, see
     values(5).







Page 1                       Reliant UNIX 5.44                Printed 11/98

math(5)                                                             math(5)

     The following are declared as functions and may also be defined as
     macros:

     double acos(double x);
     double asin(double x);
     double atan(double x);
     double atan2(double y, double x);
     double ceil(double x);
     double cos(double x);
     double cosh(double x);
     double exp(double x);
     double fabs(double x);
     double floor(double x);
     double fmod(double x, double y);
     double frexp(double value, int *exp);
     double ldexp(double value, int exp);
     double log(double x);
     double log10(double x);
     double modf(double value, double *iptr);
     double pow(double x, double y);
     double sin(double x);
     double sinh(double x);
     double sqrt(double x);
     double tan(double x);
     double tanh(double x);

     double erf(double x);
     double erfc(double x);
     double gamma(double x);
     double hypot(double x, double y);
     double j0(double x);
     double j1(double x);
     double jn(int n, double x);
     double lgamma(double x);
     double y0(double x);
     double y1(double x);
     double yn(int n, double x);
     int    isnan(double x);

     double acosh(double x);
     double asinh(double x);
     double atanh(double x);
     double cbrt(double x);
     double expm1(double x);
     int    ilogb(double x);
     double log1p(double x);
     double logb(double x);
     double nextafter(double x, double y);
     double remainder(double x, double y);
     double rint(double x);
     double scalb(double x, double n);



Page 2                       Reliant UNIX 5.44                Printed 11/98

math(5)                                                             math(5)

     The following external variable is defined:

     extern int signgam;

SEE ALSO
     frexp(3C), isnan(3C), bessel(3M), erf(3M), exp(3M), floor(3M),
     gamma(3M), hypot(3M), matherr(3M), sinh(3M), trig(3M), values(5).















































Page 3                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026