Provides cloud based math services
- Clone the repo
- Run
npm install - Run
npm start - Go to
localhost:5500in your browser
The api can be called via a get request to https://cloud-math-c045aa7f02f6.herokuapp.com/api/math/operation=desired-operation&a=first-number&b=second-number
the operation parameter is the desired operation a and b are the two numbers that are used in the operation
(you can also use c,d,e, or f if the operation requires more than 2 numbers)
This operation adds two numbers together
This operation subtracts two numbers
This operation multiplies two numbers
This operation divides two numbers
This operation finds the sin of a number
This operation finds the cos of a number
This operation finds the tangent of a number
This operation finds the roots of a quadratic equation
This operation finds the hypotenuse of a right triangle
This operation finds the factorial of a number
This operation finds the tetrate of a number
This operation finds the square root of a number
This operation finds the cube root of a number
This operation cubes a number
This operation squares a number
This operation finds the roots of a cubic equation
This operation gets a random number between 0 and 1
The quadratic and cubic formulas only return real roots
If you would like to contribute you can make a pull request and it will be reviewed and most likely accepted.
It's a joke until it's not