User manual

Table Of Contents
614
mikoC PRO for PIC32
MikroElektronika
sin
Prototype
double sin(double f);
Description Function returns the sine of f in radians. The return value is from -1 to 1.
Example
doub = sin(PI/2.); // doub = 1.000000
sinh
Prototype
double sinh(double x);
Description Function returns the hyperbolic sine 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 = sinh(PI/2.); // doub = 2.301296
sqrt
Prototype
double sqrt(double x);
Description Function returns the non negative square root of x.
Example
doub = sqrt(10000.); // doub = 100.0000
tan
Prototype
double tan(double x);
Description Function returns the tangent of x in radians. The return value spans the allowed range of oating point
in the mikroC PRO for PIC32.
Example
doub = tan(PI/4.); // doub = 0.999998
tanh
Prototype
double tanh(double x);
Description Function returns the hyperbolic tangent of x, dened mathematically as sinh(x)/cosh(x).
Example
doub = tanh(-PI/4.); // doub = -0.655793