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

Functions

double log2 (double x)
 Compute 2 based logarithm. More...
 

Function Documentation

◆ log2()

double log2 ( double  x)

Compute 2 based logarithm.

The log2 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 log2 functions return log_2 x.