Skip to content

This is a simple program that calculates the number Pi using basic calculus concepts.

Notifications You must be signed in to change notification settings

kiajalali/CalculatePi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Calculate π

I wrote this program on 3/14/2021 to celebrate Pi DAY!!! I was partly inspired by jomatech (@jomaoppa) where in one of his videos he calculates the number Pi using a different method. Here's the link to that video

My approach/explanation to this question:

I use the concept of integral to achive this. I simply sum all of the "mini" rectangles under the circle and add them to a total sum/tally. As you can see in the picture below the red area will get smaller and while it gets smaller we add up all the rectangles up to till we reach 0.

alt text

Happy pi day!

About

This is a simple program that calculates the number Pi using basic calculus concepts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages