POW(3) Linux Programmer's Manual POW(3)

pow, powf, powl - power functions

#include <math.h>

double pow(double x, double y);

float powf(float x, float y);

long double powl(long double x, long double y);

Link with -lm.

The pow() function returns the value of x raised to the power of y.

The pow() function can return the following error:

The argument x is negative and y is not an integral value. This would result in a complex number.

SVID 3, POSIX, 4.3BSD, ISO 9899. The float and the long double variants are C99 requirements.

cbrt(3), cpow(3), sqrt(3)

2002-07-27

Different Versions of this Page: