pow [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation
HP C/iX Library Reference Manual
pow
Returns the value of x raised to the power y.
Syntax
#include <math.h>
double pow (double x, double y);
Parameters
x A real number.
y A real number.
Return Values
n The value of xy.
0 Indicates any of the following:
* The x parameter is zero and y is non-positive. The
`errno'' variable is set to EDOM. A DOMAIN error
message is also printed on the standard error
output.
* The x parameter is negative and y is not an integer.
The errno variable is set to EDOM. A DOMAIN error
message is also printed on the standard error
output.
* An underflow condition has occurred, and errno is
set to ERANGE.
+-HUGE_VAL An overflow condition has occurred, and errno is set to
ERANGE.
Description
The pow function returns xy. If x is zero, y must be positive. If x is
negative, y must be an integer. Error handling can be changed by a
user-written matherr function.
See Also
matherr(), ANSI C 4.5.5.1, POSIX.1 8.1
MPE/iX 5.0 Documentation