Class of PHP mathematical functions. We are learning Abs function description: mixedabs (mixednumber); return value: function abs returns the absolute value of the parameter number. Acos function description: doubleacos (doublenumber); return value: function we are learningAbs
Function description: mixed abs (mixed number );
Return value: abs returns the absolute value of the parameter number.
Acos
Function description: double acos (double number );
Return value: return the arc cosine of the parameter number in the acos function. If the number of a parameter is greater than 1 or less than 1, the return cosine is meaningless.
Acossh --
Returns the hyperbolic cosine of X.
Asin
Function description; double asin (double number );
Return value: the asin function returns the arc sine of the parameter number. If the number is greater than 1 or less than 1, the arcsin value is meaningless.
Asinh --
Returns the arc hyperbolic sine.
Atan
Function description: double atan (double number );
The atan function returns the arc tangent of the parameter number.
Atan2
Function description: Double atan2 (double x, double y );
Return value: the atan2 function returns the radian value of the angle of the coordinate point specified by the Cartesian coordinate system in the polar coordinate system.
Atan --
Arc tangent
Atanh --
Antihyperbolic tangent
BinDec
Function description: int bindec (string binary_number );
Return value: the bindec function returns the integer of the binary_number string written in binary. PHP uses a 32-bit signed integer. The first digit of its binary number is the symbol bit.
Base_convert --
Convert numbers between any decimal systems
Ceil
Function description: int ceil (double number );
Return value: the ceil function returns the smallest integer greater than the number parameter. if the number is an integer ., Returns itself.
Cos
Function description: double cos (double angle );
Return value: cos returns the cosine of the angle with the radian value.
Cosh --
Hyperbolic cosine
DecBin
In contrast to Bindec, convert decimal to binary.
DecHex (<-> HexDec)
Returns the hexadecimal value.
DecOct (<-> OctDec)
Returns the octal value.
Deg 2rad (<-> Rad2reg)
Function description: double deg2red (double angle );
Return value: the radian value corresponding to the angle value returned by the deg2red function.
Exp
Function description: double exp (double power );
Return value: function exp returns the power of the natural logarithm.
Expm1 --
Returns Exp (number)-1, and returns an accurate result even when the number value is close to zero.
Floor
Function description: int floor (double number );
Return value: return the integer part of the parameter number.
Fmod --
Returns the remainder of the floating point number of the division.
Getrandmax
Function description: int getrandmax ();
Returns the maximum value that can be returned by the rand function.
Hexdec --
Convert hexadecimal to decimal
Hypot --
Return sqrt (num1 * num1 + num2 * num2)
Is_finite --
Determine if it is a finite value
Is_infinite --
Determines if it is an infinite value
Is_nan --
Determine if it is a valid value
Log (Log10)
Function description: Double log (double number );
Return value: returns the natural logarithm of the parameter number (returns the base-10 logarithm)
Lcg_value --
Composite linear coequal generator
Log10 --
Base-10 logarithm
Log1p --
Return log (1 + number). even if the value of number is close to zero, an accurate result can be calculated.
Max (<-> Min)
Function description: mixed max (mixed arg1, mixed arg2 ,..., Mixed argn );
Return value: return the maximum value (minimum value) in this array. if the parameter contains floating point numbers, all parameters are converted to floating point numbers, and the return value is also floating point numbers. otherwise, all parameters are converted to integers, and the return value is an integer.
Pi
Function description: double pi ();
Returned value: the pi function returns an approximate value of the circumference rate.
Pow
Function description: double pow (double base, double power );
Return value: the function pow returns the power of the base parameter.
Rand
Function description: int rand (int lowest, int longest );
Note: srand must be activated before the rand function is used. Generates a random number.
Return value: The rand function returns a number (including two parameters) between the optional lowest and longest parameters. If no parameter exists, the return value ranges from zero to the integer returned by getrandmax.
Rad2deg --
Converts radians to degrees.
Round
Function description: double round (double number );
Return value: The round function returns an integer closest to the number parameter.
Sin
Function description: double sin (double angle );
Return value: the sin function returns the sine of an angle in radians.
Sinh --
Hyperbolic sine
Sqrt
Function description: double sqrt (double number );
Note: In the sqrt function, the parameter number cannot be smaller than 0.
Return value: the sqrt function returns the square root of the parameter number.
Srand
Function description: srand (int seed );
Note: function srand activates the random number generator. The seed parameter is a random seed, that is, the random number obtained is calculated by a series of parameters.
Return value: none.
Tan
Function description: double tan (duoble angle );
Return value: tan returns the tangent of the angle in radians.
Tanh-
Hyperbolic tangent
Abs function description: mixed abs (mixed number); return value: the absolute value of the parameter number returned by function abs. Acos function description: double acos (double number); return value: function...