Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hypot(3m)

sinh(3m)

intro(3m)



EXP(3M)                 COMMAND REFERENCE                 EXP(3M)



NAME
     exp, log, log10, pow, sqrt - exponential, logarithm, power,
     and square root functions

SYNOPSIS
     #include <math.h>

     double exp (x)
     double x;

     double log (x)
     double x;

     double log10 (x)
     double x;

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

     double sqrt (x)
     double x;

DESCRIPTION
     Exp returns the exponential function of x.

     Log returns the natural logarithm of x; log10 returns the
     base 10 logarithm of x.

     Pow returns x to the power of y.

     Sqrt returns the square root of x.

FILES
     /usr/lib/libm.a          Mathematical library functions.

DIAGNOSTICS
     Exp and pow return a huge value when the correct value would
     overflow; errno is set to ERANGE.  Pow returns 0 and sets
     errno to EDOM when the first argument is negative or zero
     and the second argument is negative and non-integral, for
     example, pow(-1.0,-0.5). The value of pow (0.0,0.0) is
     defined to be 1.0

     Log returns -HUGE when x is zero or negative; errno is set
     to EDOM.

     Sqrt returns 0 when x is negative; errno is set to EDOM.

SEE ALSO
     hypot(3m), sinh(3m), intro(3m).





Printed 10/17/86                                                1



%%index%%
na:72,126;
sy:198,1008;
de:1206,420;
fi:1626,121;
di:1747,779;
se:2526,130;
%%index%%000000000109

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