Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

calculate-pi

Calculate pi using BBP formula and GMP library. Choose the desired number of digits and the base of your number system.

A faster algorithm is the Chudnovsky algorithm, especially when implemented with binary splitting, but that would be much harder to code. Since this is meant to be simple and fun, I am using the BBP formula instead.

See the comments at the top of the code!

About

Calculate pi using BBP formula and GMP library. Choose the desired number of digits and the base of your number system.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages