MicrOS
powl.c File Reference
#include "../math.h"

Functions

long double powl (long double base, long double exponent)
 Compute power. More...
 

Function Documentation

◆ powl()

long double powl ( long double  base,
long double  exponent 
)

Compute power.

The powl functions compute x raised to the power y. A domain error occurs if x is finite and negative and y is finite and not an integer value. A range error may occur. A domain error may occur if x is zero and y is zero. A domain error or pole error may occur if x is zero and y is less than zero.

Parameters
baseBase of power.
exponentExponent of power.
Returns
The powl functions return x^y.