Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ math(5) — NEWS-os 5.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(3)

matherr(3M)

values(5)



math(5)                MISC. FILE FORMATS                 math(5)



NAME
     math - math functions and constants

SYNOPSIS
     #include <math.h>

DESCRIPTION
     This file contains declarations of all the functions in  the
     Math  Library  (described in Section 3M), as well as various
     functions  in  the  C  Library  (Section  3C)  that   return
     floating-point  values.   It  defines the structure and con-
     stants used by the  matherr(3M)  error-handling  mechanisms,
     including  the  following  constant  used  as a error-return
     value:

     HUGE           The  maximum  value  of  a   single-precision
                    floating-point    number.     The   following
                    mathematical constants are defined  for  user
                    convenience:

     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           π, the ratio of the circumference of a circle
                    to its diameter.

     MPI2         π/2.

     MPI4         π/4.

     M1PI         1/π.

     M2PI         2/π.

     M2SQRTPI     2/\/π.

     MSQRT2        The positive square root of 2.

     MSQRT12      The positive square root of 1/2.  The follow-
                    ing  mathematical  constants are also defined
                    in this header file:

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




                                                                1





math(5)                MISC. FILE FORMATS                 math(5)



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

SEE ALSO
     intro(3), matherr(3M), values(5).

















































                                                                2



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