Everything

powl [V1.08 or later]


Calculates the yth power of x

[Classification]

Mathematical library

[Syntax]

#include <math.h>

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

[Return value]

Returns the yth power of x.

If x < 0 and y is a non-integer or if x = 0 and y <= 0, powl returns a Not-a-Number (NaN) and sets the macro EDOM for the global variable errno.

If an overflow occurs, powl returns ±∞ and sets the macro ERANGE for errno.

If an underflow occurs, powl returns a denormal number and sets the macro ERANGE for errno.

[Description]

This function calculates the yth power of x.