SarthakKeshari / calc_for_everything

This repository aims to provide Calculators for educational, professional, scientific, health and well-being and other purposes.
https://calc-for-everything-psi.vercel.app
MIT License
113 stars 103 forks source link

Added Integral Calc #532

Closed IshaanShettigar closed 10 months ago

IshaanShettigar commented 10 months ago

Issue Id you have worked upon -

96

Briefly explain your program logic -

There is no function in mathjs that lets you do this directly so I had to write my own. Basically I take in an input like 3x^2 + 2x and then it gets split into an array like ["3x^2", "+", "2x]. In this process I do check with many regex's to make sure that the user has entered the correct value. After this I just integrate it using the polynomial integration formula that we all know.

Screenshots(Attach 2 screenshots of your own input and output) -

image

image

image


By raising this PR I affirm that -

SarthakKeshari commented 10 months ago

Congratulations 🎉 @IshaanShettigar on your contribution. Thanks for adding value to this repository. 😊

Let's celebrate this fest 😃 by providing more developers 👨‍💻👩‍💻 an opportunity to contribute. Help us make this repository reach far and more by sharing this to your friends and colleagues.

Your efforts can make difference.

SarthakKeshari commented 10 months ago

Hey 👋, may you also encourage us by clicking the star icon on the repository main page. ⭐

image