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

Functions

float logf (float x)
 Compute natural logarithm. More...
 

Function Documentation

◆ logf()

float logf ( float  x)

Compute natural logarithm.

The logf functions compute the base-e (natural) logarithm of x. A domain error occurs if the argument is negative. A pole error may occur if the argument is zero.

Parameters
xValue whose logarithm is calculated.
Returns
The logf functions return log_e x.