C library function manual --- math.h, stdlib.h, string.h, float.h

xiaoxiao2021-03-06  65

Mathematical functions, the library is math.h, stdlib.h, string.h, float.h

INT ABS (INT i) returns an absolute value of integer parameter i

Double Cabs (STRUCT Complex Znum) Returns the absolute value of the recoverable Znum

Double Fabs (double x) Returns the absolute value of the double precision parameter x

Long Labs (long n) returns absolute value of long integer parameter n

Double EXP (double x) Returns the value of the index function EX

Double Frexp (Double Value, INT * EPTR) Returns the value of X in Value = X * 2N, N storage in EPTR

Double LDEXP (Double Value, Int Exp); Returns Value * 2EXP value

Double log (double x) Returns the value of LOGEX

Double log10 (double x) Returns the value of log10x

Double Pow (double x, double y) Returns the value of XY

Double Pow10 (INT P) Returns 10P value

Double SQRT (Double X) Returns √x value

Double ACOS (Double X) Returns the anti-residue COS-1 (X) value of X, X is curved

Double Asin (double x) Returns the X of the X-Sin Sin-1 (X) value, X is an arc

Double Atan (double x) Returns the Untifregate Tan-1 (x) value of X, X is curved

Double Atan2 (Double Y, Double X) Returns Y / X Anytitate Tan-1 (x) value, Y X is an arc

Double Cos (Double X) Returns the cosine COS (X) value of X, X is curvature

Double Sin (double x) Returns the sinusoidal SIN (X) value of X, X is curvature

Double Tan (double x) Returns the orthosis TAN (X) value of X, X is an arc

Double Cosh (double x) Returns the double cosine COSH (X) value of X, X is curved

Double SINH (Double X) Returns the dual sinusoid SINH (X) value of X, X is curved

Double Tanh (Double X) Returns the double-dicing Tanh (X) value of X, X is curved

Double Hypot (double x, double y) Returns the length (z) of the right-angle triangle.

X and Y are the length of the straight angle, Z2 = x2 Y2

Double CEIL (Double X) Returns minimal integers of not less than X

Double Floor (double x) returns the maximum integer of no more than x

Void SRAND (unsigned seed) initializes the random number generator

INT rand () generates a random number and returns this number

Double Poly (Double X, INT N, Double C []) generates a multiplicity from the parameter

Double MODF (Double Value, Double * iptr) decomposes the double-precision value Value into the mantissa and the order

Double FMOD (double x, double y) Returns the remainder of X / Y

Double Frexp (Double Value, INT * EPTR) divides the double-precision value value into the mantissa and the order Double ATOF (Char * NPTR) converts the string NPTR into floating point and returns this floating point number

Double ATOI (Char * NPTR) Converts the string NPTR into an integer and returns this integer

Double Atol (Char * NPTR) converts the string NPTR to grow integers and return this integer

Char * ECVT (Double Value, Int NDIGIT, INT * DECPT, INT * SIGN)

Convert the floating point value VALUE into a string and returns the string

Char * FCVT (Double Value, Int Ndigit, INT * DECPT, INT * SIGN)

Convert the floating point value VALUE into a string and returns the string

Char * GCVT (Double Value, int NDIGIT, CHAR * BUF)

Converting the number Value into a string and stored in BUF, and returns the pointer of the BUF

Char * Ultoa (unsigned long value, char * string, int RADIX)

Convert unsigned integer value into a string and return the string, and Radix is ​​the base of the conversion.

Char * LTOA (Long Value, Char * String, int RADIX)

Convert long-shaped value VALUE into a string and return the string, and Radix is ​​the base of the conversion.

Char * ITOA (int value, char * string, int radix)

Converting the integer value into a string to store String, and RADIX is the base of the conversion.

Double Atof (Char * NPTR) converts the string nptr into a double precision number and returns this number, the error returns 0

INT ATOI (Char * NPTR) Converts the string nptr into an integer, returns this number, error returns 0

Long atol (char * nptr) converts the string NPTR to grow the total number and return this number, the error returns 0

Double Strtod (Char * Str, Char ** Endptr) converts the string STR into double-precision and returns this number,

Long Strtol (CHAR * STR, Char ** Endptr, Int Base) Converts the string STR to grow the number,

And return this number,

INT MatherR (Struct Exception * E)

User modify mathematics error returns information function (no need to use)

Double _Matherr (_Mexcep why, char * fun, double * arg1p,

Double * Arg2P, Double RetVal

User modify mathematics error returns information function (no need to use)

Unsigned int _clear87 () Clear the floating point status word and return the original floating point status

Void _fpreset () Reproduces the floating point mathematics package

Unsigned int _status87 () Returns floating point status word

转载请注明原文地址:https://www.9cbs.com/read-85398.html

New Post(0)