PHP Tutorial Math
Algorithm
- Calculate Fibonacci sequence using recursion in PHP
- Calculate factorials using recursion in PHP
- Create Fibonacci sequence in PHP
Math
- Calculate exponential value in PHP
- Calculate the hypotenuse of different right-angle triangles in PHP
- Check whether a value is ' not-a-number ' in PHP
- Convert degrees to radians in PHP
- Convert radians to degrees in PHP
- Find highest value with the max() function in PHP
- Find lowest value with the min() function in PHP
- Get ' e ' raised to the power of different numbers in PHP
- Get the absolute value of different numbers in PHP
- Return log(1+number) for different numbers in PHP
- Return the base-10 logarithm of different numbers in PHP
- Return the natural logarithm of different numbers in PHP
- Return the remainder of x/y in PHP
- Return the square root of different numbers in PHP
- Return the value of PI in PHP
Random
- Generate random numbers: in PHP
- Return a pseudo random number in a range between 0 and 1 in PHP
- Return largest possible random value that can be returned by mt_rand() in PHP
- Return largest possible random value that can be returned by rand() in PHP
- Seed the random number generator in PHP
Trigonometric functions
- Get arc sine of different numbers in PHP
- Get arc tangent of different numbers with the atan() function in PHP
- Get inverse hyperbolic sine of different numbers in PHP
- Get the arc cosine of different numbers in PHP
- Get the arc tangent of two variables with the atan2() function in PHP
- Get the inverse hyperbolic cosine of different numbers in PHP
- Get the inverse hyperbolic tangent of different numbers in PHP
- Return the cosine of different numbers in PHP
- Return the hyperbolic cosine of different numbers in PHP
- Return the hyperbolic sine of different numbers in PHP
- Return the hyperbolic tangent of different numbers in PHP
- Return the sine of different numbers in PHP
- Return the tangent of different numbers in PHP
Round
- Round numbers down to the nearest integer in PHP
- Round numbers in PHP
- Round numbers to two decimals in PHP
- Round numbers up to the nearest integer in PHP
- Round numbers using the constants in PHP