User manual

596
mikoPascal PRO for PIC32
MikroElektronika
acos
asin
Prototype
function acos(x : real) : real;
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
Prototype
function asin(x : real) : real;
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
Trigon Library
The mikroPascal PRO for PIC32 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 Functions
- acos
- asin
- atan
- atan2
- ceil
- cos
- cosh
- eval_poly
- exp
- fabs
- oor
- frexp
- ldexp
- log
- log10
- modf
- pow
- sin
- sinh
- sqrt
- tan
- tanh