Bailey Borwein Plouffe formula

from Wikipedia, the free encyclopedia

In mathematics , the Bailey-Borwein-Plouffe formula (BBP formula ) describes a sum formula for calculating the circle number, discovered in 1995 by the Canadian mathematician Simon Plouffe .

Discovered by Plouffe series for is:

The formula is named after the authors David H. Bailey , Peter Borwein, and Simon Plouffe of the magazine article in which it was first published. The amazing to this particular formula is that one of it with a little changing an algorithm can be derived any one of the digit of the display of the hexadecimal determined without calculating the previous figures (point extraction).

Polylogarithmic constant

Since Plouffe's discovery, there have been many similar formulas of shape

discovered that add up to other fundamental mathematical constants (in the representation for the base ), such as B. to the polylogarithmic constants and to the Catalan constants . These formulas are called the base BBP series . The question of which mathematical constants exist for BBP series has not yet been answered. The following prime numbers exist for a BBP series:

2, 3, 5, 7, 11, 13, 17, 19, 29, 31, 37, 41, 43, 61, 73, 109, 113, 127, 151, 241, 257, 331, 337, 397, 683, 1321, 1429, 1613, 2113, 2731, 5419, 8191, 14449, 26317, 38737, 43691, 61681, 65537, 87211, 131071, 174763, 246241, 262657, 268501, 279073, 312709, ...

23, 47, 53 and 59 are the smallest prime numbers that are missing from this list. However, it has not been proven whether there is actually no BBP series. Probably there is no BBP series for square roots , Euler's number and Euler's constant , since these are (presumably) not polylogarithmic constants.

BBP algorithm

An example will show how to get the digits of a number representation. So you get z. B. the 4th decimal place of through

  • Multiplication by ...
  
  • Cutting away the integer part ...
  
  • Multiplication by ...
  
  • and cutting away the broken part ...
  

The modulo operator and the Gaussian brackets are used for the notation .

The -th digit of the hexadecimal representation of zu results analogously

Multiplication of the Plouffe formula by gives after subdividing into four terms

Since only the fractional part of is included in the expression for , one can remove an integer part from the first summands when calculating in order to limit the size of the intermediate results. This is achieved by applying the operator to the counter. The remaining summands with do not have an integral part. This gives (using the symbol for congruence ):

.

The discrete exponential function in the numerator of the first sum can be calculated efficiently using binary exponentiation , with the intermediate results remaining smaller than . This applies

.

Since the and its linear combination can still contain an integer part, this must still be removed. So is

Advantages of the BBP algorithm

This method of extracting only the currently required position from saves the storage space for the previous positions. Furthermore, one can use simpler data types for the storage of the obtained positions, which in turn also have shorter access times, which ultimately makes the algorithm faster. Therefore, in many applications, this method has made all previous algorithms for computing (which required larger and more complex data types) obsolete.

Bellard formula

Fabrice Bellard discovered this similar formula in 1997. It's about 43% faster than BBP:

.

literature

  • Marc Chamberland: Binary BBP-Formulas for Logarithms and Generalized Gaussian-Mersenne Primes. Journal of Integer Sequences, Vol. 6, 2003, digital only (PDF; 175 kB).
  • David H. Bailey: A Compendium of BBP-Type Formulas for Mathematical Constants. 2004, online (PDF; 215 kB).
  • Barry Cipra: Digits of Pi. In: D. Mackenzie, B. Cipra (Eds.): What's happening in the Mathematical Sciences. Volume 6, pp. 29-39. AMS 2006.

Individual evidence

  1. David H. Bailey , Peter B. Borwein , Simon Plouffe : On the Rapid Computation of Various Polylogarithmic Constants . In: Mathematics of Computation . 66, No. 218, April 1997, pp. 903-913. doi : 10.1090 / S0025-5718-97-00856-9 .
  2. Follow A104885 in OEIS

Web links