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

Functions

float powf (float base, float exponent)
 Compute power. More...
 

Function Documentation

◆ powf()

float powf ( float  base,
float  exponent 
)

Compute power.

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