Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ exp(S) — Xenix 2.3.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(S)

hypot(S)

sinh(S)



     EXP(S)                   XENIX System V                    EXP(S)



     Name
          exp, log, pow, sqrt, log10 - Performs exponential,
          logarithm, power, square root functions.

     Syntax
          #include <math.h>

          double exp (x)
          double x;

          double log (x)
          double x;

          double pow (x, y)
          double x, y;

          double sqrt (x)
          double x;

          double log10 (x)
          double x;

     Description
          exp returns the exponential function of x.

          log returns the natural logarithm of x.

          pow returns xy.

          sqrt returns the square root of x.

     See Also
          intro(S), hypot(S), sinh(S)

     Diagnostics
          exp and pow return a HUGE value when the correct value would
          overflow.  An unusually large argument may also result in
          errno being set to ERANGE.  log and log10 return HUGE
          negative values and set errno to EDOM when x is nonpositive.
          A message indicating DOMAIN error (or SING error when x is
          0) is printed on the standard error output.  pow returns a
          huge negative value and sets errno to EDOM when x is
          nonpositive and y is not an integer, or when x and y are
          both zero.  sqrt returns 0 and sets errno to EDOM when x is
          negative.  A message indicating DOMAIN error is printed on
          the standard error output.

          These error-handling procedures may be changed with the
          function matherr(S).

     Notes
          These routines must be linked by using the -lm linker



     Page 1                                           (printed 8/7/87)





     EXP(S)                   XENIX System V                    EXP(S)



          option.






















































     Page 2                                           (printed 8/7/87)



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