Bellard's formula explained

Bellard's formula is used to calculate the nth digit of π in base 16.

Bellard's formula was discovered by Fabrice Bellard in 1997. It is about 43% faster than the Bailey–Borwein–Plouffe formula (discovered in 1995).[1] [2] It has been used in PiHex, the now-completed distributed computing project.

One important application is verifying computations of all digits of pi performed by other means. Rather than having to compute all of the digits twice by two separate algorithms to ensure that a computation is correct, the final digits of a very long all-digits computation can be verified by the much faster Bellard's formula.[3]

Formula:

\begin{align} \pi=

1{2
6}
infty
\sum
n=0
(-1)n
210n

\left(-

25
4n+1

\right.&{}-

1{4n+3}
+
28
10n+1

-

26
10n+3

\left.{}-

22
10n+5

-

22
10n+7

+

1{10n+9}
\right) \end{align}

Notes

  1. Web site: PiHex Credits. Centre for Experimental and Constructive Mathematics. Simon Fraser University. 30 March 2018. https://web.archive.org/web/20170610094408/http://wayback.cecm.sfu.ca/projects/pihex/credits.html. 2017-06-10. live. March 21, 1999.
  2. Barsky . Daniel . Muñoz . Vicente . Pérez-Marco . Ricardo . On the genesis of BBP formulas . Acta Arithmetica . 198 . 4 . 2021 . 0065-1036 . 10.4064/aa200619-28-9 . 401–426 . 1906.09629.
  3. Web site: Hexadecimal Digits are Correct! . 31 October 2016 . Peter . Trueb . 2016-12-28 . https://web.archive.org/web/20161116164638/http://pi2e.ch/blog/2016/10/31/hexadecimal-digits-are-correct/ . 2016-11-16 . live.

External links