Skip to content

∫ πŸ”’ This program approximates the area beneath a curve using n rectangles (Riemann Sum in Calculus). You could find the exact area by taking the limit for the area as n β†’ ∞. However, this code provides a good approximation and allows n to easily be scaled up for greater precision to the point where the right and left hand sums will converge.

Notifications You must be signed in to change notification settings

adityasngpta/integral-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Integral Calculator

By Aditya Sengupta

As I continue to delve into the fascinating world of Calculus, I have come across an intriguing concept known as integration. A useful way to approximate integration involves the use of rectangles. The program that I have created will estimate the area beneath a curve by utilizing n rectangles. While the precise calculation of the area beneath a curve requires the utilization of limits with infinite rectangles, I am still in the process of mastering this technique. Nonetheless, the program provides a reasonably accurate approximation. Furthermore, given that it is in the form of code, it can be conveniently scaled up to accommodate an increased number of rectangles.

I also added a midpoint sum calculator. Similar to left and right hand sums, midpoint sums are a way to approximate the area under a curve using rectangles. The difference is that the height of each rectangle is calculated using the midpoint of the interval instead of the left or right bound.

About

∫ πŸ”’ This program approximates the area beneath a curve using n rectangles (Riemann Sum in Calculus). You could find the exact area by taking the limit for the area as n β†’ ∞. However, this code provides a good approximation and allows n to easily be scaled up for greater precision to the point where the right and left hand sums will converge.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages