{{keywords>wiki library source code example reference}}
===== pow =====
double pow(double, double );
pow() returns base raised to the exp power.
===== C Sourcecode Example =====
compile in linux with: gcc pow.c -o pow **-lm** -Wall
#include /* including standard library */
//#include /* uncomment this for Windows */
#include /* including math library */
int main( void )
{
printf ("4 to the 2th power is: %lf\n ", pow(4, 2));
return 0;
}
==== output ====
output:
user@host:~$ /pow
4 to the 2th power is: 16.000000