EasyManuals Logo

Xinje XD Series User Manual

Xinje XD Series
456 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #354 background imageLoading...
Page #354 background image
353
Double-precision math
function
Single-precision math
function
Description
double acos(double x);
float acosf(float x);
Inverse cosine function
double asin(double x);
float asinf(float x);
Inverse sine function
double atan(double x);
float atanf(float x);
Inverse tangent function
double atan2(double y,
double x);
float atan2f(float y, float
x);
Inverse tangent value of
parameter (y/x)
double ceil(double x);
float ceilf(float x);
Return the smallest double
integer which is greater or
equal with parameter x
double cos(double x);
float cosf(float x);
Cosine function
double cosh(double x);
float coshf(float x);
Hyperbolic cosine function,
cosh(x)=(e^x+e^(-x))/2
double exp(double x);
float expf(float x);
Exponent (e^x) of a nature data
double fabs(double x);
float fabsf(float x);
Absolute value of parameter x
double floor(double x);
float floorf(float x);
Return the largest double
integer which is smaller or
equals with x
double fmod(double x,
double y);
float fmodf(float x, float y);
If y is not zero, return the
reminder of floating x/y
double frexp(double val, int
_far *exp);
float frexpf(float val, int
_far *exp);
Break floating data x to be
mantissa and exponent x =
m*2^exp, return the mantissa
of m, save the logarithm into
exp.
double ldexp(double x, int
exp);
float ldexpf(float x, int
exp);
X multiply the (two to the
power of n) is x*2^n.
double log(double x);
float logf(float x);
Nature logarithm logic
double log10(double x);
float log10f(float x);
logarithm (log10x)
double modf(double val,
double *pd);
float modff(float val, float
*pd);
Break floating data X to be
integral part and decimal part,
return the decimal part, save
the integral part into parameter
ip.
double pow(double x, double
y);
float powf(float x, float y);
Power value of parameter y
(x^y)
double sin(double x);
float sinf(float x);
sine function
double sinh(double x);
float sinhf(float x);
Hyperbolic sine function,
sinh(x)=(e^x-e^(-x))/2
double sqrt(double x);
float sqrtf(float x);
Square root of parameter X
double tan(double x);
float tanf(float x);
Tangent function.
double tanh(double x);
float tanhf(float x);
hyperbolic tangent function
tanh(x)=(e^x-e^(-x))/(e^2+e^(-
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:
tudonghoatoancau.com

Table of Contents

Other manuals for Xinje XD Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Xinje XD Series and is the answer not in the manual?

Xinje XD Series Specifications

General IconGeneral
Input Voltage24V DC
Storage Temperature-20°C to 70°C
Protection ClassIP20
TypePLC
SeriesXD
Programming LanguageLadder Logic, Instruction List
Communication InterfaceRS232, RS485
Power Supply24V DC
Digital InputsAvailable (number varies by model)
Digital OutputsAvailable (number varies by model)
Analog InputsAvailable (number varies by model)
Analog OutputsAvailable (number varies by model)
Output TypeRelay, Transistor
Number of InputsVaries by model (see Digital Inputs and Analog Inputs)
Number of OutputsVaries by model (see Digital Outputs and Analog Outputs)
Operating Temperature0°C to 50°C
Humidity5% to 95% (non-condensing)