# Happy Pi Day!

**URL:** <https://discourse.julialang.org/t/happy-pi-day/96043>\
**Category:** Community\
**Created:** [March 14, 2023, 9:53am UTC](https://discourse.julialang.org/t/happy-pi-day/96043 "2023-03-14T09:53:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [March 14, 2023, 9:53am UTC](https://discourse.julialang.org/t/happy-pi-day/96043/1 "2023-03-14T09:53:36Z")

</div>

Happy Pi Day. Any interesting Julian codes related to pi?

Anyone coded Bailey Borwein Plouffe in Julia?

> **[Bailey–Borwein–Plouffe formula](https://en.wikipedia.org/wiki/Bailey%E2%80%93Borwein%E2%80%93Plouffe_formula)**
>
> The Bailey–Borwein–Plouffe formula (BBP formula) is a formula for π. It was discovered in 1995 by Simon Plouffe and is named after the authors of the article in which it was published, David H. Bailey, Peter Borwein, and Plouffe. Before that, it had been published by Plouffe on his own site. The formula is
> The BBP formula gives rise to a spigot algorithm for computing the nth base-16 (hexadecimal) digit of π (and therefore also the 4nth binary digit of π) without computing the preceding digits. ...

---

<div class="post-metadata">

**Author:** ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Post date:** [March 14, 2023, 10:02am UTC](https://discourse.julialang.org/t/happy-pi-day/96043/2 "2023-03-14T10:02:29Z")

</div>

Thread: [How julia calculates pi? - #13 by GunnarFarneback](https://discourse.julialang.org/t/how-julia-calculates-pi/87094/13)

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 14, 2023, 10:18am UTC](https://discourse.julialang.org/t/happy-pi-day/96043/3 "2023-03-14T10:18:18Z")

</div>

> **[Computing the hexadecimal value of pi](https://giordano.github.io/blog/2017-11-21-hexadecimal-pi/)**
>
> The Bailey–Borwein–Plouffe formula is one of the several algorithms to compute \\(\\pi\\). Here it is: \\\[\\pi = \\sum\_{k = 0}^{\\infty}\\left\[\\frac{1}{16^k} \\left( \\frac{4}{8k + 1} - \\frac{2}{8k + 4} - \\frac{1}{8k + 5} - \\frac{1}{8k + 6} \\right) \\right\]\\\]...

---

<div class="post-metadata">

**Author:** ![StevenSiew](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevensiew/32/218393_2.png) [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Post date:** [March 14, 2023, 9:02pm UTC](https://discourse.julialang.org/t/happy-pi-day/96043/4 "2023-03-14T21:02:43Z")

</div>

Happy Pi day with Riemann Zeta Function

[https://forem.julialang.org/ohanian/using-riemann-zeta-function-and-doublefloats-to-calculate-pi-20o5](https://forem.julialang.org/ohanian/using-riemann-zeta-function-and-doublefloats-to-calculate-pi-20o5)
