IEEE-VIT / simple-math-nodejs

A simple node.js app to help you get started with Hacktoberfest and Open Source :heart:
MIT License
11 stars 71 forks source link

Add functionality for any maths operation #9

Open mayankshah1607 opened 4 years ago

mayankshah1607 commented 4 years ago

You can add routes in the API that perform any maths operation - from simple multiplication, to even calculating matrix dot products.

The request must be a JSON of the following format :

{
  data : {
                  param1: <value>,
                  ...
                  param<n>: <value>
            }
}

The response must a JSON of the following format:

{
     result: <value>,
     meta: {
     <any relevant meta data here>
     }
}

Make sure to add relevant unit tests . Comment below with the maths operation you will be taking up to avoid clashes with other developers. :)

yashvardhan-kukreja commented 4 years ago

Adding a route for calculating powers (x ^ y)

robintom commented 4 years ago

@mayankshah1607 I'll be taking up on Adding an API route for matrix dot product.

ruidpm commented 4 years ago

I will implement roots (x√y)

yashvardhan-kukreja commented 4 years ago

Adding a route for calculating n-th root

yashvardhan-kukreja commented 4 years ago

Adding a route for calculating log to the base n of a number.

yashvardhan-kukreja commented 4 years ago

Adding a route for calculating antilog of a number to the base n

helpingwizard commented 9 months ago

Could you assign me "Adding a route for calculating n-th root" ?