EXP(3M) DOMAIN/IX Reference Manual (SYS5) EXP(3M)
NAME
exp, log, log10, pow, sqrt - exponential, logarithm, power,
square root functions
USAGE
#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
x
Exp returns e .
Log returns the natural logarithm of x. The value of x must
be positive.
Log10 returns the logarithm base ten of x. The value of x
must be positive.
y
Pow returns x . If x is zero, y must be positive. If x is
negative, y must be an integer.
Sqrt returns the non-negative square root of x. The value
of x may not be negative.
DIAGNOSTICS
Exp returns HUGE when the correct value would overflow, or
zero when the correct value would underflow, and sets errno
to ERANGE.
Log and log10 return -HUGE and set errno to EDOM when x is
not positive. A message indicating `DOMAIN' error (or SING
error when x is zero) is printed on the standard error out-
put.
Pow returns zero and sets errno to EDOM when x is zero and y
is not positive, or when x is negative and y is not an
integer. In these cases, a message indicating `DOMAIN'
error is printed on the standard error output. When the
correct value for pow would overflow or underflow, pow
Printed 5/10/85 EXP-1
EXP(3M) DOMAIN/IX Reference Manual (SYS5) EXP(3M)
returns +HUGE or zero respectively, and sets errno to
ERANGE.
Sqrt returns zero and sets errno to EDOM when x is negative.
A message indicating `DOMAIN' error is printed on the stan-
dard error output.
RELATED INFORMATION
hypot(3M), sinh(3M).
EXP-2 Printed 5/10/85