Skip to content

perspector/Pi-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi Examples

A collection of different examples of how to calculate pi using various programming languages. This uses the arccot/Machin's method:
The arccot method You do arccot(5)-arccot(369)
arccot:
1/n - 1/(3n^3) + 1/(5n^5) ...

So for n = 4:
1/4 - 1/(3(4)^3) + 1/(5(4)^5) + 1/(7(4)^7) + 1/(9(4)^9) 1/4 - 1/(12^3) + 1/(20^5) + 1/(28^7) + 1/(36^9)

About

An efficient python scipt that can calculate pi using arccot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published