
B–61863E–1/06
16. MATHEMATIC FUNCTIONSPMC LIBRARY
385
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pow
[Description]
Calculates “x” raised to the power of “y”.
[Format]
#include <math.h>
double pow( double x , double y );
[Input]
x A floating–point value to be raised.
y An exponent value.
[Output]
Returns “x” raised to the power of “y”.
If “x” is 0 and “y” is negative, returns HUGE_VAL and sets ERANGE
in the global variable “errno”. If both “x” and “y” are 0 or “x” is
negative and “y” is not an integer, returns 0 and sets EDOM in the
global variable “errno”. If the result is too large, returns
+/–HUGE_VAL and sets ERANGE in the global variable “errno”.
16.18
CALCULATING THE
RAISED VALUE