shrey183 / Symbolic-Calculator

This is an ongoing project to create a symbolic calculator.
MIT License
2 stars 10 forks source link

Implement a method to check if a number is prime and if possible other Number Theory methods. #9

Open shrey183 opened 5 years ago

shrey183 commented 5 years ago

Consider looking at all the possible calculation that one can do on Maple: https://fr.maplesoft.com/support/help/Maple/view.aspx?path=examples/UsefulMapleFunctions Go on the side bar and click on the Number Theory option. There is a list of calculations that one can perform on Maple including checking whether a number is prime. We want to implement these methods in such a way that one can go on the Menu page and type the command: isPrime(5) and get the following result True. It might look ugly with LaTex, but I am working on that issue right now. In the meanwhile, keep on adding a bunch of calculations taking inspiration from the Maple website.

andreasvirkus commented 5 years ago

Hi, where should the isPrime method be stored?

shrey183 commented 5 years ago

Hi, So you can add this method to the Menu Page. The user can enter for instance: IsPrime(5) in the input box and you can print the result True. Let me know if this makes sense to you.

nwyll commented 5 years ago

If you intend to implement multiple methods from MapleSoft, have you considered making each its own ES6 module then import them?

nwyll commented 5 years ago

Any other functions you specifically want implemented?

nwyll commented 5 years ago

andreasvirkus Let me know if you want to work together in this

shrey183 commented 5 years ago

Hi, Thank you for your interest. I was actually looking to use Magma to perform symbolic computations as is done on the integral-calculator website. For the moment, I am just using available libraries, but yeah if things don't work out then importing modules would be the way to go. Regarding your other question, I wanted to keep this open ended, but in the long term I am interested in implementing algorithms for symbolic integration and PDE solutions since they are challenging.