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

Functions

double pow (double base, double exponent)
 Compute power. More...
 

Function Documentation

◆ pow()

double pow ( double  base,
double  exponent 
)

Compute power.

The pow 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 pow functions return x^y.