R MPFR - Multiple Precision Floating-Point Reliable

Arithmetic (via S4 classes and methods) for arbitrary precision floating point numbers, including transcendental ("special") functions. To this end, the package interfaces to the 'LGPL' licensed 'MPFR' (Multiple Precision Floating-Point Reliable) Library which itself is based on the 'GMP' (GNU Multiple Precision) Library.

Installation is non-trivial if you install from _source because of the SystemRequirements (listed in ./DESCRIPTION):

The package Rmpfr interfaces R to the C Library MPFR:

MPFR, the "Multiple Precision Floating-Point Reliably" library

which is Free/Libre Software, available under the LGPL license. MPFR Website

MPFR itself is built on and requires the GMP library

GNU Multiple Precision arithmetic library (GMP)

Obtain that from GMP Website or from your operating system vendor / package system:

+ Under _Debian_, _Ubuntu_ (and other Debian derivative) Linux distributions,
  it is sufficient (for *both* libraries) to simply do
  sudo apt-get install libmpfr-dev
+ In Fedora, Redhat, CentOS, opensuse, etc, you get these via
  sudo dnf install mpfr-devel

The standard reference to MPFR is

 author = {Laurent Fousse and Guillaume Hanrot and Vincent Lef\`{e}vre and
     Patrick P\'{e}lissier and Paul Zimmermann},
 title = {MPFR: A multiple-precision binary floating-point library with
          correct rounding},
 year = {2007},
 journal = {ACM Trans. Math. Softw.},
 volume = {33},
 number = {2},
 issn = {0098-3500},
 pages = {13},
 doi = {http://doi.acm.org/10.1145/1236463.1236468},
 publisher = {ACM},
 address = {New York, NY, USA},


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.8-7 by Martin Maechler, 3 months ago


Report a bug at https://r-forge.r-project.org/tracker/?group_id=386

Browse source code at https://github.com/cran/Rmpfr

Authors: Martin Maechler [aut, cre] , Richard M. Heiberger [ctb] (formatHex() , *Bin , *Dec) , John C. Nash [ctb] (hjkMpfr() , origin of unirootR()) , Hans W. Borchers [ctb] (optimizeR(* , "GoldenRatio"); origin of hjkMpfr())

Documentation:   PDF Manual  

Task views: Numerical Mathematics

GPL (>= 2) license

Imports stats, utils, methods

Depends on gmp

Suggests MASS, Bessel, polynom, sfsmisc, Matrix

Enhances dfoptim, pracma

System requirements: gmp (>= 4.2.3), mpfr (>= 3.0.0), pdfcrop (part of TexLive) is required to rebuild the vignettes.

Imported by Bessel, CVXR, DPQmpfr, FunWithNumbers, GJRM, HH, MLMOI, NetworkChange, PMCMRplus, RPANDA, SNscan, TOHM, WeMix, confoundr, corHMM, crossrun, downscale, ecd, ether, ldatuning, nodeSub, qrandom, skedastic, soilhypfit, streamDepletr.

Depended on by GeDS, LDOD, LIHNPSD, MixedPoisson, correlbinom, frmqa.

Suggested by BNPdensity, DPQ, IMIFA, LDAShiny, POUMM, QuACN, Ryacas, alphastable, bnlearn, copula, expm, gmp, malan, selectiveInference, stabledist.

See at CRAN