User manual

686
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
Trigon Library
The mikroBasic PRO for dsPIC30/33 and PIC24 provides a set of library functions for oating point math handling. See
also Predened Globals and Constants for the list of predened math constants.
Library Routines
- acos
- asin
- atan
- atan2
- ceil
- cos
- cosh
- eval_poly
- exp
- fabs
- oor
- frexp
- ldexp
- log
- log10
- modf
- pow
- sin
- sinh
- sqrt
- tan
- tanh
acos
Prototype
sub function acos(dim x as oat) as oat
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
res = acos(0.5) ‘ res = 1.047198
asin
Prototype
sub function asin(dim x as oat) as oat
Description Function returns the arc sine of parameter x; that is, the value whose sine is x. The input parameter x
must be between -1 and 1 (inclusive). The return value is in radians, between -Π/2 and Π/2 (inclusive).
Example
res = asin(0.5) ‘ res = 5.235987e-1