log, log10

Return the logarithm of their arguments.

Format

#include  <math.h>

double log  (double x);

double log10  (double x);

Argument

x
A real number of type double.

Description

The log function performs a natural (base e) logarithm.

The log10 functions performs a base 10 logarithm.

Return Values
The logarithm of the argument (in the appropriate base). 
-HUGE_ VAL  Indicates that the argument is 0 or negative; errno is set to ERANGE. 


Previous Page | Next Page | Table of Contents | Index