HP C/iX Library Reference Manual (30026-90004)
270 Chapter5
HP C/iX Library Function Descriptions
pow
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
x
y
.
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
x
y
. 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