HP 3000 Manuals

exp [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation


HP C/iX Library Reference Manual

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 ex.

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



MPE/iX 5.0 Documentation