|
CC78K4 Datasheet, PDF (246/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language | |||
|
◁ |
CHAPTER 10 LIBRARY FUNCTIONS
7-14 log
Mathematical Functions
FUNCTION
log finds the natural logarithm.
HEADER
math.h
FUNCTION PROTOTYPE
double log (double x);
Function
log
Arguments
x ... Numeric value to perform
operation
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, EDOM is set to errno.
⢠If x = 0, HUGE_VAL with a negative sign is returned, and ERANGE is set to errno.
246
Userâs Manual U15556EJ1V0UM
|
▷ |