Mikroelektronika MIKROE-442 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
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 floating point math handling. See
also Predefined Globals and Constants for the list of predefined math constants.
Library Routines
- acos
- asin
- atan
- atan2
- ceil
- cos
- cosh
- eval_poly
- exp
- fabs
- floor
- frexp
- ldexp
- log
- log10
- modf
- pow
- sin
- sinh
- sqrt
- tan
- tanh
acos
Prototype
sub function acos(dim x as float) as float
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 float) as float
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