English
Language : 

CC78K4 Datasheet, PDF (237/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 10 LIBRARY FUNCTIONS
7-5 cos
Mathematical Functions
FUNCTION
cos finds cos.
HEADER
math.h
FUNCTION PROTOTYPE
double cos (double x);
Function
cos
Arguments
x ... Numeric value to perform
operation
Return Value
Normal ... cos of x
When x = NaN, x = ±∞ ... NaN
EXPLANATION
• Calculates cos of x.
• If x is non-numeric, NaN is returned.
• If x is infinite, NaN is returned and EDOM is set to errno.
• If the absolute value of x is extremely large, the result of an operation becomes an almost meaningless value.
User’s Manual U15556EJ1V0UM
237