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

Functions

double log (double x)
 Compute natural logarithm. More...
 

Function Documentation

◆ log()

double log ( double  x)

Compute natural logarithm.

The log 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 log functions return log_e x.