Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
atan
atan2
ceil
cos
cosh
eval_poly
exp
493
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
function atan(arg : real) : real;
Description
The function computes the arc tangent of parameter arg; that is, the value whose tan-
gent is arg. The return value is in radians, between -đ/2 and đ/2 (inclusive).
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).
Prototype
function ceil(x : real) : real;
Description The function returns value of parameter x rounded up to the next whole number.
Prototype
function cos(arg : real) : real;
Description The function returns the cosine of arg in radians. The return value is from -1 to 1.
Prototype
function cosh(x : real) : real;
Description
The function returns the hyperbolic cosine of x, defined mathematically as
(ex+e-x)/2. If the value of x is too large (if overflow occurs), the function fails.
Prototype
function eval_poly(x : real; var d : array[10] of real; n : inte-
ger) : real;
Description
Function Calculates polynom for number x, with coefficients stored in d[], for
degree 
n
.
Prototype
function exp(x : real) : real;
Description
The function returns the value of e — the base of natural logarithms — raised to
the power x (i.e. ex).