High-Precision Software Directory
Update: 2 Feb 2017
This web site (see software package links below) contains software written
by David H. Bailey.
*** IMPORTANT NOTE: By downloading or using this software you are agreeing to the modified
BSD license that is in file
DHB-License.docx and in the packages below. If you wish to
use the software for commercial purposes please contact the author.
Please send any comments or questions for this site to:
Here are the software packages that are available:
- MPFUN2015: A thread-safe arbitrary precision package.
This package permits one to perform floating-point computations (real and complex) to arbitrarily high numeric precision, by making only relatively minor changes to existing Fortran-90 programs (mostly changes to type statements). All basic arithmetic operations and transcendental functions are supported, together with several special functions.
The package comes in two versions: (a) a completely self-contained, all-Fortran version that is simple to install; and (b) a version based on the MPFR package (for lower-level operations) that is somewhat more complicated to install but is approximately 3X faster. The two versions are "plug-compatible" in the sense that applications written for one also run with the other. Both versions employ advanced algorithms, including FFT-based arithmetic, for optimal performance. They also detect, and provide means to overcome, accuracy problems rooted in the usage of inexact double-precision constants and expressions. A high-level Fortran-90 interface, supporting both multiprecision real and complex datatypes, is provided for each, so that most users need only to make minor changes to existing double-precision code.
A technical paper describing the package and providing details for usage is available here.
The two versions of the software are available here:
- MPFUN-Fort: A thread-safe, all-Fortran, self-contained arbitrary precision system:
Unix-based systems (including Apple OSX systems):
- MPFUN-MPFR: A thread-safe*, Fortran and C, MPFR-based arbitrary precision system, 3X as fast as MPFUN-Fort:
Unix-based systems (including Apple OSX systems:
*Note: For the time being, the MPFUN-MPFR version is guaranteed to be thread-safe only for operations that do not involve transcendental functions (since it is based on MPFR). This limitation will be removed in a future release. Installation of the MPFUN-MPFR package is more complicated than MPFUN-Fort, since it requires both the GMP and the MPFR packages to be installed first. See instructions in the README.txt (in the distribution file above) for details.
- ARPREC is available from the website of the Lawrence Berkeley National Laboratory: LBNL website.
- QD is available from the website of the Lawrence Berkeley National Laboratory: LBNL website.
- MPFUN90 is available from the website of the Lawrence Berkeley National Laboratory: LBNL website.