#include <math.h> double log( double num );
The function log() returns the natural logarithm of num. There's a domain error if num is negative, a range error if num is zero.