A faster algorithm for extracting hexadecimal digits of π
By Robert SmithThis post introduces a new algorithm for extracting hexadecimal
digits of \(\pi\) without computing the preceding digits. It beats the
standard term-by-term evaluations of Bailey–Borwein–Plouffe (BBP), Bellard, and Huvent
on operation
count. Even against Huvent’s eight-term formula,
the savings at large offsets are about 61% fewer divisions and 38% fewer
full modular exponentiations.The key is a relationship among the four powers of two in this identity:\[
\boxed{
\pi = \sum_{k=0}...
Read more at stylewarning.com