User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
611
asin
Prototype
double asin(double x);
Description Function returns the arc sine of parameter x; that is, the value whose sine is x. The input parameter
x must be between -1 and 1 (inclusive). The return value is in radians, between -Π/2 and Π/2
(inclusive).
Example
doub = asin(0.5); // doub = 5.235987e-1
atan
Prototype
double atan(double f);
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
doub = atan(1.0); // doub = 7.853982e-1
atan2
Prototype
double atan2(double y, double x);
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
doub = atan2(2., 1.); // doub = 4.636475e-1
ceil
Prototype
double ceil(double x);
Description Function returns value of parameter x rounded up to the next whole number.
Example
doub = ceil(0.5); // doub = 1.000000
cos
Prototype
double cos(double f);
Description Function returns the cosine of f in radians. The return value is from -1 to 1.
Example
doub = cos(PI/3.); // doub = 0.500008