Raises a number to a power #include <math.h> double pow ( double x , double y ); float powf ( float x , float y ); (C99) long double powl ( long double x , long double y ); (C99) The pow( ) function calculates x to the power of y. In other words, the return value is xy. The arguments are subject to the following rules:
If the arguments violate these conditions, pow( ) may return NaN (not a number) or infinity, and may indicate a domain error. If an overflow or underflow occurs, pow( ) returns positive or negative HUGE_VAL and may indicate a range error. ExampleSee the example for cosh( ) in this chapter. See Also |