User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
686
atan
Prototype
function atan(arg : real) : real;
Description Function computes the arc tangent of parameter f; that is, the value whose tangent is f. The return value
is in radians, between -Π/2 and Π/2 (inclusive).
Example
res := atan(1.0); // res := 7.853982e-1
atan2
Prototype
function atan2(y : real; x : real) : real;
Description This is the two-argument arc tangent function. It is similar to computing the arc tangent of y/x, except
that the signs of both arguments are used to determine the quadrant of the result and x is permitted to
be zero. The return value is in radians, between -Π and Π (inclusive).
Example
res := atan2(2., 1.); // res := 4.636475e-1
ceil
Prototype
function ceil(x : real) : real;
Description Function returns value of parameter x rounded up to the next whole number.
Example
res := ceil(0.5); // res := 1.000000
cos
Prototype
function cos(arg : real) : real;
Description Function returns the cosine of f in radians. The return value is from -1 to 1.
Example
res := cos(PI/3.); // res := 0.500008
cosh
Prototype
function cosh(x : real) : real;
Description Function returns the hyperbolic cosine 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 := cosh(PI/3.); // res := 1.600286
eval_poly
Prototype
function eval_poly(x : real; var d : array[10] of real; n : byte) : real;
Description Function Calculates polynom for number x, with coefcients stored in d[], for degree n.