Log calculates the natural logarithm of a value and log10 calculates the base-10 logarithm.
#include <math.h> double log (double x); double log10 (double x);
x
x
.
x
is negative; the function prints a DOMAIN error message to stderr and sets errno to EDOM.x
is 0; the function prints a SING error message to stderr and sets errno to ERANGE.
These functions do not return standard ANSI domain or range errors.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/math.h | math.h | clib.lib |