Mikroelektronika MIKROE-442 데이터 시트
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