User manual

Table Of Contents
610
mikoC PRO for PIC32
MikroElektronika
ANSI C Math Library
The mikroC PRO for PIC32 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 modied in order to facilitate PIC32 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
- tanh
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