Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
612
mikoC PRO for PIC32
MikroElektronika
cosh
Prototype
double cosh(double x);
Description 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.
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. 
ex
).
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
floor
Prototype
double floor(double x);
Description Function returns the value of parameter 
x
 rounded down to the nearest integer.
Example
doub = floor(15.258);  // doub = 15.000000
frexp
Prototype
double frexp(double value, int *eptr);
Description Function splits a floating-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
.