pow
Computes x raised to the power y
#include <math.h> double pow ( double x, double y);
The pow function returns the value of x raised to the power y. When the argument is outside the permissible range, errno is set and matherr is called. Unless the function is replaced, matherr prints a diagnostic message using the stderr stream.
The pow function computes x raised to the power y. A domain error occurs if x is zero and y is less than or equal to 0, or if x is negative and y is not an integer. A range error can occur.
#include <math.h> #include <stdio.h> main () { printf ("%f\n", pow (1.5, 2.5) ); }
produces the following:
2.755676