GNU MPFR explained

GNU MPFR
GNU MPFR
Logo Size:180px
Developer:GNU Project (INRIA and others)
Latest Release Version:4.2.1
Programming Language:C
Operating System:Cross-platform
Genre:Mathematical software
License:LGPL

The GNU Multiple Precision Floating-Point Reliable Library (GNU MPFR) is a GNU portable C library for arbitrary-precision binary floating-point computation with correct rounding, based on GNU Multi-Precision Library.[1] [2]

Library

MPFR's computation is both efficient and has a well-defined semantics: the functions are completely specified on all the possible operands and the results do not depend on the platform.[3] This is done by copying the ideas from the ANSI/IEEE-754 standard for fixed-precision floating-point arithmetic (correct rounding and exceptions, in particular). More precisely, its main features are:

MPFR is not able to track the accuracy of numbers in a whole program or expression; this is not its goal. Interval arithmetic packages like Arb,[4] MPFI,[5] or Real RAM implementations like iRRAM,[6] which may be based on MPFR, can do that for the user.

MPFR is dependent upon the GNU Multiple Precision Arithmetic Library (GMP).

MPFR is needed to build the GNU Compiler Collection (GCC).[7] Other software uses MPFR, such as ALGLIB, CGAL, FLINT, GNOME Calculator, the Julia language implementation, the Magma computer algebra system, Maple, GNU MPC, and GNU Octave.

External links

Notes and References

  1. L. . Fousse. G. . Hanrot. V. . Lefèvre. P. . Pélissier. P. . Zimmermann. MPFR: A multiple-precision binary floating-point library with correct rounding. ACM Transactions on Mathematical Software . 2007 . 33 . 2 . 13:1–15. 10.1145/1236463.1236468. 9641003.
  2. Web site: The Rise of Mixed Precision Arithmetic . Nick . Higham . October 8, 2015 . May 23, 2020.
  3. Web site: Frequently asked questions about MPFR: 1. What are the differences between MPF from GMP and MPFR? .
  4. Web site: Arb, a C library for arbitrary-precision ball arithmetic . May 31, 2022.
  5. Web site: MPFI Project . GitLab at Inria . May 31, 2022.
  6. Web site: iRRAM, a software library for exact real arithmetic . May 31, 2022.
  7. Web site: GCC 4.3 Release Series: Changes, New Features, and Fixes. 2012-11-02. September 25, 2013.