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

Functions

long double log2l (long double x)
 Compute 2 based logarithm. More...
 

Function Documentation

◆ log2l()

long double log2l ( long double  x)

Compute 2 based logarithm.

The log2l functions compute the base-2 logarithm of x. A domain error occurs if the argument is less than zero. A pole error may occur if the argument is zero.

Parameters
xValue whose logarithm is calculated.
Returns
The log2l functions return log_2 x.