User manual
mikroC PRO for dsPIC
MikroElektronika
695
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
cosh
Prototype
double cosh(double x);
Description Function returns the hyperbolic cosine of x, dened mathematically as (e
x
+e
-x
)/2. If the value of x
is too large (if overow occurs), the function fails.
Example
doub = cosh(PI/3.); // doub = 1.600286
exp
Prototype
double exp(double x);
Description Function returns the value of e — the base of natural logarithms — raised to the power x (i.e. e
x
).
Example
doub = exp(0.5); // doub = 1.648721
fabs
Prototype
double fabs(double d);
Description Function returns the absolute (i.e. positive) value of d.
Example
doub = fabs(-1.3); // doub = 1.3
oor
Prototype
double oor(double x);
Description Function returns the value of parameter x rounded down to the nearest integer.
Example
doub = oor(15.258); // doub = 15.000000










