sprite 1 sprite 30
functions-online

Math

Execute and test PHP functions with an mathmatic background. These functions use and except only float and integer values.

abs

Returns the absolute value of $number.

acos

Returns the arc cosine of arg in radians. acos() is the complementary function of cos(), which means that a==cos(acos(a)) for every value of a that is within acos()' range.

acosh

Returns the inverse hyperbolic cosine of $arg, i.e. the value whose hyperbolic cosine is $arg.

asin

Returns the arc sine of $arg in radians. asin() is the complementary function of sin(), which means that a==sin(asin(a)) for every value of a that is within asin()'s range.

asinh

Returns the inverse hyperbolic sine of $arg, i.e. the value whose hyperbolic sine is $arg.

atan2

This function calculates the arc tangent of the two variables $x and $y. It is similar to calculating the arc tangent of $y / $x, except that the signs of both arguments are used to determine the quadrant of the result.

atan

Returns the arc tangent of arg in radians. atan() is the complementary function of tan(), which means that a==tan(atan(a)) for every value of a that is within atan()'s range.

atanh

Returns the inverse hyperbolic tangent of $arg, i.e. the value whose hyperbolic tangent is $arg.

base_convert

base_convert() converts a number between arbitrary bases.

bindec

Returns the decimal equivalent of the binary number represented by the $binaryString argument.

decbin

Returns a string containing a binary representation of the given $number argument.

dechex

Returns a string containing a hexadecimal representation of the given $number argument.

decoct

Returns a string containing an octal representation of the given $number argument.

hexdec

Returns the decimal equivalent of the hexadecimal number represented by the $hexString argument.

mt_rand

Many random number generators of older libcs have dubious or unknown characteristics and are slow.

octdec

Returns the decimal equivalent of the octal number represented by the $octalString argument.

round

Rounds a float.

tan

tan() returns the tangent of the $arg parameter. The $arg parameter is in radians.

tanh

Returns the hyperbolic tangent of $arg, defined as sinh($arg)/cosh($arg).