User manual

mikroBasic PRO for PIC32
MikroElektronika
611
Prototype
sub function sinh(dim x as oat) as oat
Description Function returns the hyperbolic sine of x, dened mathematically as (e
x
-e
-x
)/2. If the value of x is
too large (if overow occurs), the function fails.
Example
res = sinh(PI/2.) ‘ res = 2.301296
Prototype
sub function sqrt(dim x as oat) as oat
Description Function returns the non negative square root of x.
Example
res = sqrt(10000.) ‘ res = 100.0000
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 PIC32.
Example
res = tan(PI/4.) ‘ res = 0.999998
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
sinh
sqrt
tan
tanh