MPFUN2015: A Thread-Safe Arbitrary Precision Computation Package (Full Documentation)

David H. Bailey · 2015

Numerous research studies have arisen, particularly in the realm of mathematical physics and experimental mathematics, that require extremely high numeric precision. Such precision greatly magnies computer run times, so thread-based parallel processing is increasingly essential. However, existing arbitrary precision packages either are not thread-safe at the user language interface level, or else require certain \context to be generated in a multithreaded environment. This paper describes a new package that is 100% thread-safe, even at the language interface level, by means of data structures and algorithmic techniques that avoid the need to generate \context (except for exceedingly high precision), yet still permit the working precision level to be dynamically changed during execution. The package employs advanced algorithms, including FFT-based arithmetic and quadratically convergent transcendentals, for optimal performance even at very high precision levels. It also detects, and provide means to overcome, accuracy problems rooted in the usage of inexact double-precision constants and expressions. A full-featured Fortran-90 interface, supporting both multiprecision real and complex datatypes, is provided, so that most users need only to make minor changes (typically type statements and I/O) to existing doubleprecision code. A high-level C++ interface is planned.

Cited by 5 works.

Authors

References