Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>pow</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
pow

Usage

   #include <math.h>
   double pow(double x,double y);

   ANSI

Description

   pow returns the value of x to the y power .

Example 

   #include <stdio.h>
   #include <math.h>

   #include <stdlib.h>
   int main()
   {

       double x = 3, y = 2, result;
       result = pow(x,y);
       printf("%.2f to the power of %.2f is: %.2f\n"
               ,x,y,result);
       return EXIT_SUCCESS;
   }

Return Value

   The double result is returned or a DOMAIN error if x==0 and y<=0, or x<=0
   and y is not an integer.

See Also

   exp, log, sqrt



See Also: exp log sqrt

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson