User manual

Table Of Contents
612
mikoC PRO for PIC32
MikroElektronika
cosh
Prototype
double cosh(double x);
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
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
frexp
Prototype
double frexp(double value, int *eptr);
Description Function splits a oating-point value into a normalized fraction and an integral power of 2. The return
value is the normalized fraction and the integer exponent is stored in the object pointed to by eptr.