English
Language : 

CC78K0S Datasheet, PDF (250/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
7-1 acos (normal model only)
Mathematical Functions
FUNCTION
acos finds acos.
HEADER
math.h
FUNCTION PROTOTYPE
double acos (double x) ;
Function
acos
Arguments
x ... Numeric value on which
operation is performed
Return Value
When –1 ≤ x ≤ 1 ... acos of x
When x < –1, 1 < x, x = NaN
... NaN
EXPLANATION
• Calculates acos of x (range between 0 and p).
• When x is non-numeric, NaN is returned.
• In the case of the definition area error of x < –1, 1 < x, NaN is returned and EDOM is set.
250
User’s Manual U14872EJ1V0UM