Learn R Programming

⚠️There's a newer version (1.1-0) of this package.Take me there.

Installation and Reference of the R package 'Rmpfr'

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

@article{FouLHLPZ-2007,
 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},
}

Copy Link

Version

Install

install.packages('Rmpfr')

Monthly Downloads

36,274

Version

0.9-1

License

GPL (>= 2)

Maintainer

Martin Maechler

Last Published

January 31st, 2023

Functions in Rmpfr (0.9-1)

Mnumber-class

Class "Mnumber" and "mNumber" of "mpfr" and regular numbers and arrays from them
Rmpfr-package

R MPFR - Multiple Precision Floating-Point Reliable
bind-methods

"mpfr" '...' - Methods for Functions cbind(), rbind()
chooseMpfr

Binomial Coefficients and Pochhammer Symbol aka Rising Factorial
frexpMpfr

Base-2 Representation and Multiplication of Mpfr Numbers
mpfr-distr-etc

Distribution Functions with MPFR Arithmetic
gmp-conversions

Conversion Utilities gmp <-> Rmpfr
factorialMpfr

Factorial 'n!' in Arbitrary Precision
optimizeR

High Precision One-Dimensional Optimization
atomicVector-class

Virtual Class "atomicVector" of Atomic Vectors
pbetaI

Accurate Incomplete Beta / Beta Probabilities For Integer Shapes
array_or_vector-class

Auxiliary Class "array_or_vector"
asNumeric-methods

Methods for asNumeric(<mpfr>)
mpfrMatrix

Classes "mpfrMatrix" and "mpfrArray"
Rmpfr-workarounds

Base Functions etc, as an Rmpfr version
integrateR

One-Dimensional Numerical Integration - in pure R
mpfrMatrix-utils

Functions for mpfrMatrix Objects
unirootR

One Dimensional Root (Zero) Finding -- in pure R
is.whole

Whole ("Integer") Numbers
log1mexp

Compute f(a) = \(\mathrm{log}\)(1 +/- \(\mathrm{exp}\)(-a)) Numerically Optimally
Bernoulli

Bernoulli Numbers in Arbitrary Precision
hjkMpfr

Hooke-Jeeves Derivative-Free Minimization R (working for MPFR)
str.mpfr

Compactly Show STRucture of Rmpfr Number Object
sumBinomMpfr

(Alternating) Binomial Sums via Rmpfr
mpfr.utils

MPFR Number Utilities
matmult

(MPFR) Matrix (Vector) Multiplication
igamma

Incomplete Gamma Function
Bessel_mpfr

Bessel functions of Integer Order in multiple precisions
seqMpfr

"mpfr" Sequence Generation
formatHex

Flexibly Format Numbers in Binary, Hex and Decimal Format
formatMpfr

Formatting MPFR (multiprecision) Numbers
pmax

Parallel Maxima and Minima
mpfr

Create "mpfr" Numbers (Objects)
qnormI

Gaussian / Normal Quantiles qnorm() via Inversion
mpfrArray

Construct "mpfrArray" almost as by 'array()'
mpfr-class

Class "mpfr" of Multiple Precision Floating Point Numbers
mpfr-special-functions

Special Mathematical Functions (MPFR)
mpfr-utils

Rmpfr -- Utilities for Precision Setting, Printing, etc
roundMpfr

Rounding to Binary bits, "mpfr-internally"
sapplyMpfr

Apply a Function over a "mpfr" Vector