1、abs
Header files #include <stdlib.h>
Defined function int abs (int j)
Function Description ABS () is used to calculate the absolute value of the parameter j, and returns the results.
Return Value Returns the absolute value of the result of the parameter j.
2、acos
Header files #include <math.h>
Defined Functions double acos (double x);
Function Description ACOS () is used to calculate the inverse cosine of the parameter x, and returns the results. Parameter x in the range between -1 and 1, over this range will fail.
Return Values Returns 0 to the calculation result between the PI, in radians, the angle in the function library are expressed in radians.
3、asin
Header files #include <math.h>
Defined functions double asin (double x)
Function Description asin (arcsine used to calculate the parameter x), then return the results. Parameter x in the range between -1 and 1, over this range will fail.
Return Value Returns the calculation result between the PI -PI / 2 of / 2.
Error code parameter x exceeds the range EDOM
Additional information Please join -lm when using the GCC compiler
4, scorer
Header files #include <math.h>
Defined functions double atan (double x);
Function Description atan () is used to calculate the arctangent value of the parameter x, and returns the results.
Return Value Returns the calculation result between -PI / 2 to PI / 2.
Additional information Please join -lm when using the GCC compiler
5, atan2
Header files #include <math.h>
Defined functions double atan2 (double y, double x);
Function Description of atan2 () is used to calculate the parameters of y / x arctangent value, then returns the results.
Return Value Returns the calculation result between -PI / 2 to PI / 2.
Additional information Please join -lm when using the GCC compiler
6、ceil
Header files #include <math.h>
Defined functions double ceil (double x);
Function Description cos () is used to calculate the cosine value of the parameter x, and returns the result.
Return Value Returns the smallest integer not less than the parameter x.
Additional information Please join -lm when using the GCC compiler
7、cos
Header files #include <math.h>
Defined functions double cos (double x);
Function Description ABS () is used to calculate the absolute value of the parameter j, and returns the results.
Return Value Returns the calculation result between -1 to 1.
Additional information Please join -lm when using the GCC compiler
8、cosh
Header files #include <math.h>
Defined functions idouble cosh (double x);
Function Description cosh () are used to compute the hyperbolic cosine parameter x, and returns the results. Mathematical definition of the formula: (exp (x) + exp (-x)) / 2.
Return Value Returns hyperbolic cosine of the parameter x value
Additional information Please join -lm when using the GCC compiler
9、exp
Header files #include <math.h>
Defined functions double exp (double x);
Function Description exp () is used to calculate the base e of x power value, i.e. ex value, then returns the results.
Return Value Returns e x power calculation.
Additional information Please join -lm when using the GCC compiler
10、frexp
Header files #include <math.h>
Defined functions double frexp (double x, int * exp);
Function Description frexp finds () parameter x for the number of floating-point cut in base and index. Direct return in base portion, and partly by parameters exponential exp pointer return, the return value is the value of x 2 is multiplied by exp power.
Return Value Returns the base-part of the argument x, the exponent portion of the address stored in the pointer exp.
Additional information Please join -lm when using the GCC compiler
11、ldexp
Header files #include <math.h>
Defined functions double ldexp (double x, int exp);
Function Description ldexp () for the parameter x exp power value multiplied by 2, i.e. x * 2exp.
Return Values Returns the calculation result.
Additional information Please join -lm when using the GCC compiler
12、log
Header files #include <math.h>
Defined functions double log (double x);
Description function log () is used to calculate the base e of x value, then returns the results.
Return Value Returns the natural logarithm of the parameter x.
EDOM error code parameter x is negative
ERANGE parameter value x is zero, no defined value of zero.
Additional information Please join -lm when using the GCC compiler
13, log 10
Header files #include <math.h>
Defined functions double log10 (double x);
Function Description loglO () is used to calculate the base 10 logarithm of x, and returns the results.
Return Value Returns the parameter x to the base 10 of the value.
EDOM error code parameter x is negative.
X is zero RANGE parameter values, non-zero defined value.
Additional information Please join -lm when using the GCC compiler
14、pow
Header files #include <math.h>
Defined functions double pow (double x, double y);
Function Description POW () is used to calculate the x value of the bottom power of y, i.e. xy-values, and returns the results.
Return Value Returns y x to the power calculation result.
EDOM error code parameter x and the parameter y is not negative integer.
Additional information Please join -lm when using the GCC compiler
15 without
Header files #include <math.h>
Defined functions double sin (double x);
Function Description sin () is used to calculate the sine value of the parameter x, and returns the result.
Return Value Returns the calculation result between -1 to 1.
Additional information Please join -lm when using the GCC compiler
16, born
Header files #include <math.h>
Defined functions double sinh (double x);
Function Description sinh () are used to compute the hyperbolic sine of the parameter x, and returns the results. Mathematical definition of the formula: (exp (x) -exp (-x)) / 2.
Return Value Returns the hyperbolic sine value of the parameter x.
Additional information Please join -lm when using the GCC compiler
17、sqrt
Header files #include <math.h>
Defined function double sqrt (double x);
Description function sqrt () is used to calculate the square root of the parameter x, and returns the results. Parameter x must be positive.
Return Value Returns the square root of the value of the parameter x.
EDOM error code parameter x is negative.
Additional information Please join -lm when using the GCC compiler.
18、tan
Header files #include <math.h>
Defined functions double tan (double x);
Function Description Tan () is used to calculate the tangent of parameter x, and returns the results.
Return Value Returns the tangent of parameter x.
Additional information Please join -lm when using the GCC compiler.
19、
Header files #include <math.h>
Defined functions double tanh (double x);
Function Description tanh () is used to calculate the parameters of the hyperbolic tangent of x, and returns the results. The mathematical definition of the formula: sinh (x) / cosh (x).
Return Value Returns the value of the parameter x hyperbolic tangent.
Additional information Please join -lm when using the GCC compiler.