Download CubeSuite Ver.1.40 Integrated Development Environment User`s

Transcript
CubeSuite Ver.1.40
CHAPTER 6 FUNCTIONAL SPECIFICATIONS
log
Logarithmic function (natural logarithm)
[Classification]
Mathematical library
[Syntax]
#include <math.h>
double log(double x);
[Return value]
Returns the natural logarithm of x.
logf returns a Not a Nuber(NaN) and sets macro EDOM to global variable errno if x is negative. If x is zero, it returns ∞ and sets macro ERANGE to global variable errno.
[Description]
This function calculates the natural logarithm of x, i.e., logarithm with base e.
Remark
The error processing of this function can be changed by using the matherrd function.
R20UT0259EJ0100 Rev.1.00
Oct 01, 2010
Page 695 of 890