User manual

690
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
tan
Prototype
sub function tan(dim x as oat) as oat
Description Function returns the tangent of x in radians. The return value spans the allowed range of oating 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 oat) as oat)
Description Function returns the hyperbolic tangent of x, dened mathematically as sinh(x)/cosh(x).
Example
res = tanh(-PI/4.) ‘ res = -0.655793