|
CC78K0S Datasheet, PDF (263/520 Pages) NEC – C Compiler Ver.1.30 or Later Language | |||
|
◁ |
CHAPTER 10 LIBRARY FUNCTIONS
7-14 log (normal model only)
Mathematical Functions
FUNCTION
log finds the natural logarithm.
HEADER
math.h
FUNCTION PROTOTYPE
double log (double x) ;
Function
log
Arguments
x ... Numeric value on which
operation is performed
Return Value
Normal ... Natural logarithm of
x
When x ⤠0 ... HUGE_VAL
(with negative sign)
When x is non-numeric ...
NaN
When x is infinite ... +â
EXPLANATION
⢠Finds the natural logarithm of x.
⢠If x is non-numeric, NaN is returned.
⢠If x is +â, +â is returned.
⢠In the case of an area error of x < 0, HUGE_VAL with a negative sign is returned and EDOM is set to errno.
⢠If x = 0, HUGE_VAL with a negative sign is returned, and ERANGE is set to errno.
Userâs Manual U14872EJ1V0UM
263
|
▷ |