HP C/iX Library Reference Manual (30026-90004)
Chapter 5 139
HP C/iX Library Function Descriptions
exp
exp
Returns the base
e
raised to the power of the argument.
Syntax
#include <math.h>
double exp (double
x
);
Parameters
x
A real number used as the exponent of
e
.
Return Values
n
e
raised to the power of
x
.
HUGE_VAL An overflow condition has occurred and errno is set to ERANGE.
0 An underflow condition has occurred.
Description
exp returns e
x
.
This function sets errno to ERANGE when an underflow or overflow occurs.
Error handling can be changed by a user-written matherr function.
See Also
matherr(), ANSI C 4.5.4.1, POSIX.1 8.1