7.12.6.7 The log functions

Synopsis

1

#include <math.h>
double log(double x);
float logf(float x);
long double logl(long double x);

Description

2

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

Returns

3

The log functions return loge x.