Mikroelektronika MIKROE-442 데이터 시트

다운로드
페이지 726
690
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
tan
Prototype
sub function tan(dim x as float) as float
Description Function returns the tangent of 
x
 in radians. The return value spans the allowed range of floating point 
in the mikroBasic PRO for dsPIC30/33 and PIC24.
Example
res = tan(PI/4.)  ‘ res = 0.999998
tanh
Prototype
sub function tanh(dim x as float) as float)
Description Function returns the hyperbolic tangent of 
x
, defined mathematically as 
sinh(x)/cosh(x)
.
Example
res = tanh(-PI/4.)   ‘ res = -0.655793