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.

ceil

PHP ceil() function rounds fractions up.

cos

cos() returns the cosine.

cosh

cosh() returns the hyperbolic cosine

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.

deg2rad

Converts the number in degrees to the radian equivalent

exp

Calculates the exponent of e

expm1

Returns exp(number) - 1, computed in a way that is accurate even when the value of number is close to zero.

floor

php floor() function rounds fractions down

fmod

Returns the floating point remainder (modulo) of the division of the arguments

hexdec

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

hypot

Calculate the length of the hypotenuse of a right-angle triangle

is_finite

Finds whether a value is a legal finite number

is_infinite

Finds whether a value is infinite

is_nan

Finds whether a value is not a number

log10

Base-10 logarithm

log1p

Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero

log

Natural logarithm

max

Find highest value

min

Find lowest value

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.

pow

Exponential expression

rad2deg

Converts the radian number to the equivalent number in degrees

rand

Generate a random integer

round

Rounds a float.

sin

Returns the sine of the $arg parameter

sinh

Returns the hyperbolic sine of $arg.

sqrt

Square root

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).