User manual
mikroPascal PRO for PIC32
MikroElektronika
599
modf
pow
sin
sinh
sqrt
tan
tanh
Prototype
function modf(val : real; var iptr : real) : real;
Description Returns argument val split to the fractional part (function return val) and integer part (in number iptr).
Example
res := modf(6.25, iptr); // res := 0.25, iptr = 6.00
Prototype
function pow(x : real; y : real) : real;
Description Function returns the value of x raised to the power y (i.e. x
y
). If x is negative, the function will
automatically cast y into unsigned long.
Example
res := pow(10.,5.); // res := 9.999984e+4
Prototype
function sin(arg : real) : real;
Description Function returns the sine of f in radians. The return value is from -1 to 1.
Example
res := sin(PI/2.); // res := 1.000000
Prototype
function sinh(x : real) : real;
Description Function returns the hyperbolic sine of x, dened mathematically as (e
x
-e
-x
)/2. If the value of x is
too large (if overow occurs), the function fails.
Example
res := sinh(PI/2.); // res := 2.301296
Prototype
function sqrt(x : real) : real;
Description Function returns the non negative square root of x.
Example
res := sqrt(10000.); // res := 100.0000
Prototype
function tan(x : real) : real;
Description Function returns the tangent of x in radians. The return value spans the allowed range of oating point
in the mikroPascal PRO for PIC32.
Example
res := tan(PI/4.); // res := 0.999998
Prototype
function tanh(x : real) : real;
Description Function returns the hyperbolic tangent of x, dened mathematically as sinh(x)/cosh(x).
Example
res := tanh(-PI/4.); // res := -0.655793