An Algorithm for the Ages
PSLQ, A Better Way to Find Integer Relations
January 20, 2000
Contact: Paul Preuss, [email protected], +1 510 486 6249
Among the top 10 "Algorithms of the Century" announced in the January/February, 2000, issue of Computing in Science and Engineering magazine is the integer-relation algorithm dubbed PSLQ, discovered by mathematician and sculptor Helaman Ferguson of Maryland's Center for Computing Sciences, and implemented in practical computer software by David Bailey, chief technologist of the National Energy Research Scientific Computing Center (NERSC) at the Department of Energy's Lawrence Berkeley National Laboratory.
PSLQ has unearthed many surprising relations in mathematics and physics, although its most startling result may well be a simple formula for calculating any binary digit of pi without calculating the digits preceding it. Before PSLQ, mathematicians had not thought that such a digit-extraction algorithm for pi was possible.
Using the remarkably simple formula, even a personal computer can calculate pi's millionth binary digit in about 60 seconds. Most applications of PSLQ, however, require much more computing power and must employ much greater numerical precision than the standard 16-digit, 64-bit, floating-point arithmetic available on most computers.
"Sixteen-digit arithmetic is sufficient for almost all scientific applications," says Bailey, "but a few crazy people need more. I'm one."
Bailey has developed software that translates ordinary FORTRAN programs into programs capable of arbitrary precision -- calculations accurate to tens, hundreds, or even many thousands of digits. Real physical problems that require this kind of "multiprecision" include simulating the dynamics of vortices, in which 80- to 100-digit arithmetic is needed for extremely high accuracy in each of many sequential calculations, to avoid meaningless results at the end.
As a tool of experimental mathematics, PSLQ's purpose is to discover new mathematical relations among numbers -- for example, constants that occur in various groups of mathematical formulas. Very high precision arithmetic is needed by PSLQ, or else nonsense results are obtained.
"Integer-relation detection is an old problem, first studied by Euclid about 300 BC," Bailey says. "He came up with an algorithm for finding the relation, if one exists, between any two numbers. Later many famous mathematicians -- Euler, Jacobi, Poincaré, Minkowski, and others -- tried to generalize Euclid's algorithm to any 'n' numbers, without success. Ferguson finally found a general algorithm in 1977, and recently found a much more efficient algorithm, named PSLQ. But this new method wasn't practical until it could be implemented with multiprecision software on high-performance computer systems."
Bailey calls PSLQ "a computer scheme to discover new mathematical results." In a short time it has found polylogarithmic formulas in algebraic number theory, identified a class of multiple-sum constants, uncovered relations in the renormalization procedures of quantum field theory symbolized by Feynman diagrams, and found a formula for calculating any digit of pi.
Some of these results have profound implications. The pi formula raises questions about the long-held but never proved assumption that pi's digits are random. The Feynman-diagram results suggest unsuspected relationships among formulas associated with fundamental particles.
PSLQ, an efficient, numerically stable algorithm guaranteed to find relations among integers in a limited number of iterations, is a shining example of modern computer technology applied to the discovery of new facts of mathematics and physics -- truly an algorithm of the century. It's also a harbinger of the future: experimental mathematics using computers will become increasingly important in the coming century.
About NERSC and Berkeley Lab
The National Energy Research Scientific Computing Center (NERSC) is a U.S. Department of Energy Office of Science User Facility that serves as the primary high-performance computing center for scientific research sponsored by the Office of Science. Located at Lawrence Berkeley National Laboratory, the NERSC Center serves more than 7,000 scientists at national laboratories and universities researching a wide range of problems in combustion, climate modeling, fusion energy, materials science, physics, chemistry, computational biology, and other disciplines. Berkeley Lab is a DOE national laboratory located in Berkeley, California. It conducts unclassified scientific research and is managed by the University of California for the U.S. Department of Energy. »Learn more about computing sciences at Berkeley Lab.