EXP(3M) COMMAND REFERENCE EXP(3M)
NAME
exp, expm1, log, log1p, log2, log10, pow, sqrt -
exponential, logarithm, power, and square root functions
SYNOPSIS
#include <math.h>
double exp (x)
double x;
double expm1 (x)
double x;
double log (x)
double x;
double log1p (x)
double x;
double log2 (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.
Expm1 returns exp (x) -1 accurately even for tiny x.
Log returns the natural logarithm of x; log10 returns the
base 10 logarithm of x.
Log1p returns log (1+x) accurately even for tiny x; log2
returns the logarithm of x to base 2. 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 are undefined when the correct value would
Printed 3/13/89 1
EXP(3M) COMMAND REFERENCE EXP(3M)
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 , log10 , log1p , and log2 are undefined when x is zero
or negative; errno is set to EDOM.
Sqrt is undefined when x is negative; errno is set to EDOM.
SEE ALSO
intro(3m).
Printed 3/13/89 2
%%index%%
na:240,162;
sy:402,2295;
de:2697,956;
fi:3653,152;
di:3805,242;4359,919;
se:5278,148;
%%index%%000000000119