User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
688
log10
Prototype
function log10(x : real) : real;
Description Function returns the base-10 logarithm of x (i.e. log
10
(x)).
Example
res := log10(100.); // res := 2.000000
modf
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
pow
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
sin
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
sinh
Prototype
function sinh(x : real) : real;
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
sqrt
Prototype
function sqrt(x : real) : real;
Description Function returns the non negative square root of x.
Example
res := tan(PI/4.); // res := 0.999998