Rmpfr v0.8-1

0

Monthly downloads

0th

Percentile

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.

Readme

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},
}

Functions in Rmpfr

Name Description
Rmpfr-package R MPFR - Multiple Precision Floating-Point Reliable
factorialMpfr Factorial 'n!' in Arbitrary Precision
gmp-conversions Conversion Utilities gmp <-> Rmpfr
mpfr-class Class "mpfr" of Multiple Precision Floating Point Numbers
mpfr-distr-etc Distribution Functions etc (MPFR)
igamma Incomplete Gamma Function
integrateR One-Dimensional Numerical Integration - in pure R
hjkMpfr Hooke-Jeeves Derivative-Free Minimization R (working for MPFR)
is.whole Whole ("Integer") Numbers
formatHex Flexibly Format Numbers in Binary, Hex and Decimal Format
formatMpfr Formatting MPFR (multiprecision) Numbers
roundMpfr Rounding to Binary bits, "mpfr-internally"
mpfrArray Construct "mpfrArray" almost as by 'array()'
mpfrMatrix Classes "mpfrMatrix" and "mpfrArray"
optimizeR High Precision One-Dimensional Optimization
mpfr-special-functions Special Mathematical Functions (MPFR)
seqMpfr "mpfr" Sequence Generation
mpfrMatrix-utils Functions for mpfrMatrix Objects
pmax Parallel Maxima and Minima
pbetaI Accurate Incomplete Beta / Beta Probabilities For Integer Shapes
mpfr.utils MPFR Number Utilities
mpfr-utils Rmpfr -- Utilities for Precision Setting, Printing, etc
str.mpfr Compactly Show STRucture of Rmpfr Number Object
sapplyMpfr Apply a Function over a "mpfr" Vector
mpfr Create "mpfr" Numbers (Objects)
sumBinomMpfr (Alternating) Binomial Sums via Rmpfr
unirootR One Dimensional Root (Zero) Finding -- in pure R
Bernoulli Bernoulli Numbers in Arbitrary Precision
Bessel_mpfr Bessel functions of Integer Order in multiple precisions
chooseMpfr Binomial Coefficients and Pochhammer Symbol aka Rising Factorial
array_or_vector-class Auxiliary Class "array\_or\_vector"
Mnumber-class Class "Mnumber" and "mNumber" of "mpfr" and regular numbers and arrays from them
atomicVector-class Virtual Class "atomicVector" of Atomic Vectors
bind-methods "mpfr" '...' - Methods for Functions cbind(), rbind()
asNumeric-methods Methods for asNumeric(<mpfr>)
Rmpfr-workarounds Base Functions etc, as an Rmpfr version
No Results!

Vignettes of Rmpfr

Name
Maechler_useR_2011-abstr.Rnw
Rmpfr-pkg.Rnw
Rmpfr.bib
jsslogo.jpg
log1mexp-note.Rnw
log1mexp.bib
No Results!

Last month downloads

Details

Date 2020-01-14
DateNote Previous CRAN version 0.7-2 on 2019-01-18
Type Package
SystemRequirements gmp (>= 4.2.3), mpfr (>= 3.0.0)
SystemRequirementsNote 'MPFR' (MP Floating-Point Reliable Library, http://mpfr.org/) and 'GMP' (GNU Multiple Precision library, http://gmplib.org/), see >> README.md
SuggestsNote MASS, polynom, sfsmisc: only for vignette; Matrix: test-tools
URL http://rmpfr.r-forge.r-project.org/
License GPL (>= 2)
Encoding UTF-8
NeedsCompilation yes
Packaged 2020-01-14 13:55:54 UTC; maechler
Repository CRAN
Date/Publication 2020-01-24 14:30:13 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/Rmpfr)](http://www.rdocumentation.org/packages/Rmpfr)