pow

x to the yth power

double pow (
        double x,
        double y
)

Arguments

x Base number
y Power

Return Value

x to the yth power (xy) is returned.

Explanation

x to the yth 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()