Table of Contents

Name

pow, powf, powl - power functions

Synopsis


#include <math.h>
double pow(double x, double y);
float powf(float x, float y);
long double powl(long double x, long double y);

Description

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

Errors

The pow() function can return the following error:
EDOM
The argument x is negative and y is not an integral value. This would result in a complex number.

Conforming to

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

See Also

sqrt(3) , cbrt(3)


Table of Contents