#calculate #series #π #formula #iteration #bbp #ramanujan–sato

chudnovsky

Calculate π using the Ramanujan–Sato series

2 releases

0.0.1 Dec 21, 2023
0.0.0 Dec 21, 2023

#43 in #formula

MPL-2.0 license

14KB
319 lines

Usage

Calculate Pi with 10 iterations

println!("{}", chudnovsky(10))
3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172589248355...

Dependencies

~2MB
~38K SLoC