bsMath

Bloated Shrimp Math is a large project (currently under construction) meant to act as a library of the main mathematical PHP functions. Several functions were excluded, as they were repetitive or considered unuseful. If there are any suggestions for this project, please record them here.

There are currently six categories of functions: triangles, conversions, rounding, logarithms, checks, and 'other'.

A complete list of every mathematical PHP function can be found here. For more information on mathematics, please visit MFSP.

Comments








close

Cosine

Input a number to output its cosine.



Sine

Input a number to output its sine.



Tangent

Input a number to output its tangent.



Arc Cosine

Input a number to output its inverse cosine.



Arc Sine

Input a number to output its inverse sine.



Arc Tangent

Input a number to output its inverse tangent.



Hyperbolic Cosine

Input a number to output its hyperbolic cosine.



Hyperbolic Sine

Input a number to output its hyperbolic sine.



Hyperbolic Tangent

Input a number to output its hyperbolic tangent.



Inverse Hyperbolic Cosine

Input a number to output its inverse hyperbolic cosine.



Inverse Hyperbolic Sine

Input a number to output its inverse hyperbolic sine.



Inverse Hyperbolic Tangent

Input a number to output its inverse hyperbolic tangent.



Hypotenuse

Input two sides of a triangle to output their hypotenuse.





Base Converter

Input a number, its current base, then its new base to output that value in the new base.







Binary → Decimal

Input a number in binary to output its equivalent in decimal.



Decimal → Binary

Input a number in decimal to output its equivalent in binary.



Hexadecimal → Decimal

Input a number in hexadecimal to output its equivalent in decimal.



Decimal → Hexadecimal

Input a number in decimal to output its equivalent in hexadecimal.



Octal → Decimal

Input a number in octal to output its equivalent in decimal.



Decimal → Octal

Input a number in decimal to output its equivalent in octal.



Radians → Degrees

Input a number in radians to output its equivalent in degrees.



Degrees → Radians

Input a number in degrees to output its equivalent in radians.



Ceiling

Input a number to round it up to the next integer.



Floor

Input a number to round it down to the next integer.



Round

Input a decimal and the number of digits of to round it to.





Log10

Input a number to output its log base 10.



Logarithms

Input a number and a logarithmic base to output the logarithm.





Finite Check

Input a number to check if it is finite.



Infinity Check

Input a number to check if it is infinite.



Absolute Value

Input a number to output its absolute value.



Exponents

Input a number and then a value to raise it to to output the raised answer.





Exponents Of e

Input a number to output e raised to that power.



Generate a Random Value

(Optional) Enter a minimum and maximum value, and output a random value.






Output: 1711811026

Calculate a Bit of Pi

Calculates a bit of pi.


Output: 3.1415926535898

Square Root

Input a number to output its square root.