User manual
mikroC PRO for dsPIC
MikroElektronika
693
ANSI C Math Library
The mikroC PRO for dsPIC30/33 and PIC24 provides a set of standard ANSI C library functions for oating point math
handling.
Important:
- Not all of the standard functions have been included.
- The functions have been mostly implemented according to the ANSI C standard, but certain functions have been
modied in order to facilitate dsPIC30/33 and PIC24 programming. Be sure to skim through the description before using
standard C functions.
Library Functions
- acos
- asin
- atan
- atan2
- ceil
- cos
- cosh
- exp
-fabs
- oor
- frexp
- ldexp
- log
- log10
- modf
- pow
- sin
- sinh
- sqrt
- tan
acos
Prototype
double acos(double x);
Description Function returns the arc cosine of parameter x; that is, the value whose cosine is x. The input parameter
x must be between -1 and 1 (inclusive). The return value is in radians, between 0 and Π (inclusive).
Example
doub = acos(0.5); // doub = 1.047198










