Техническая Спецификация для Mikroelektronika MIKROE-350
atan
atan2
ceil
cos
cosh
eval_poly
486
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub function atan(dim arg as real) as real
Description
The function computes the arc tangent of parameter arg; that is, the value
whose tangent is arg. The return value is in radians, between -
whose tangent is arg. The return value is in radians, between -
Π
/2 and
Π
/2
(inclusive).
Prototype
sub function atan2(dim y as real, dim x as real) as 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 -
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
sub function ceil(dim x as real) as real
Description The function returns value of parameter
x
rounded up to the next whole number.
Prototype
sub function cos(dim arg as real) as real
Description The function returns the cosine of
arg
in radians. The return value is from -1 to 1.
Prototype
sub function cosh(dim x as real) as 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
sub function eval_poly(dim x as real, dim byref d as array[10] of
real, dim n as integer) as real
real, dim n as integer) as real
Description
Function Calculates polynom for number
x
, with coefficients stored in
d[]
, for
degree
n.