pow
x to the y
th
power
double
pow
(
double x,
double y
)
Arguments
x
Base number
y
Power
Return Value
x
to the
y
th
power (
x
y
) is returned.
Explanation
x
to the
y
th
power is calculated and the result is returned.
Notes
Error processing is shown in the following table.
Condition
Return Value
Error
x
== 0&&
y
>0
0
x
== 0 &&
y
<= 0
1
Domain error
x
<0 && “
y
is not Integer value”
0
Domain error
See Also
exp()