Download 78K0 Coding - Renesas Electronics

Transcript
CubeSuite+ V1.01.00
CHAPTER 6 FUNCTION SPECIFICATIONS
log (normal model only)
Finds the natural logarithm
[Syntax]
#include <math.h>
double log (double x) ;
[Argument(s)/Return value]
Argument
x:
Numeric value to perform operation
Return Value
Normal :
Natural logarithm of x
When x <= 0 :
HUGE_VAL (with negative sign)
When x = NaN :
NaN
When x is infinite :
+∞
[Description]
- Finds natural logarithm of x.
- In the case of area error of x < 0, HUGE_VAL with a negative sign is returned, EDOM is set to errno.
- If x = 0, HUGE_VAL with a negative sign is returned, and ERANGE is set to errno.
- If x is non-numeric, NaN is returned.
- If x is +∞, +∞ is returned.
R20UT0782EJ0100 Rev.1.00
Oct 01, 2011
Page 718 of 836