Xinje XD Series User Manual page 307

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

double cos(double x);
double cosh(double x);
double exp(double x);
double fabs(double x);
double floor(double x);
double fmod(double x,
double y);
double frexp(double val, int
_far *exp);
double ldexp(double x, int
exp);
double log(double x);
double log10(double x);
double modf(double val,
double *pd);
double pow(double x, double
y);
double sin(double x);
double sinh(double x);
double sqrt(double x);
double tan(double x);
double tanh(double x);
The using method of the functions in the table:
float asinf(float x);
float asinf: float means the return value is float format;
float x: float means the function formal parameter is float format. In actual using, it do not
need to write the float. See line 14 in the following example:
float cosf(float x);
float coshf(float x);
float expf(float x);
float fabsf(float x);
float floorf(float x);
float fmodf(float x, float y);
float frexpf(float val, int
_far *exp);
float ldexpf(float x, int
exp);
float logf(float x);
float log10f(float x);
float modff(float val, float
*pd);
float powf(float x, float y);
float sinf(float x);
float sinhf(float x);
float sqrtf(float x);
float tanf(float x);
float tanhf(float x);
306
Cosine function
Hyperbolic cosine function,
cosh(x)=(e^x+e^(-x))/2
Exponent (e^x) of a nature data
Absolute value of parameter x
Return the largest double
integer which is smaller or
equals with x
If y is not zero, return the
reminder of floating x/y
Break floating data x to be
mantissa and exponent x =
m*2^exp, return the mantissa
of m, save the logarithm into
exp.
X multiply the (two to the
power of n) is x*2^n.
Nature logarithm logic
logarithm (log10x)
Break floating data X to be
integral part and decimal part,
return the decimal part, save
the integral part into parameter
ip.
Power value of parameter y
(x^y)
sine function
Hyperbolic sine function,
sinh(x)=(e^x-e^(-x))/2
Square root of parameter X
Tangent function.
hyperbolic tangent function
tanh(x)=(e^x-e^(-x))/(e^2+e^(-
x))

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents