Everything

pow functions


[Syntax]

double pow(double x)

float powf(float x)

long double powl(long double x) [V2.01.00 or later]

[Description]

These functions calculate x raised to the power y.

 

[Special case]

Condition

Return value

Exception

x<0 and y is a non-integer.

NaN

EDOM

x<0, y==∞

NaN

EDOM

x==±∞, y==0

NaN

EDOM

x==0, y==0

NaN

EDOM

x==0, y<0

+HUGE_VAL

ERANGE

Overflow occurred

±HUGE_VAL

ERANGE

Underflow occurred

0

ERANGE