Learn R Programming

gmp (version 0.7-5.1)

Multiple Precision Arithmetic

Description

Multiple Precision Arithmetic (big integers and rationals, prime number tests, matrix computation), "arithmetic without limitations" using the C library GMP (GNU Multiple Precision Arithmetic).

Copy Link

Version

Install

install.packages('gmp')

Monthly Downloads

54,462

Version

0.7-5.1

License

GPL (>= 2)

Maintainer

Antoine Lucas

Last Published

February 9th, 2026

Functions in gmp (0.7-5.1)

BernoulliQ

Exact Bernoulli Numbers
Relational_Operator

Relational Operators
binomQ

Exact Rational Binomial Probabilities
factorialZ

Factorial and Binomial Coefficient as Big Integer
factorization

Factorize a number
frexpZ

Split Number into Fractional and Exponent of 2 Parts
nextprime

Next Prime Number
gcdex

Compute Bezoult Coefficient
gcd.bigz

Greatest Common Divisor (GCD) and Least Common Multiple (LCM)
modulus

Modulus of a Big Integer
mpfr

Exported function for mpfr use
Bigq_operators

Basic arithmetic operators for large rationals
is.whole

Whole ("Integer") Numbers
Bigq

Relational Operators
gmp.utils

GMP Number Utilities
isprime

Determine if number is (very probably) prime
roundQ

Rounding Big Rationals ("bigq") to Decimals
powm

Exponentiation function
matrix

Matrix manipulation with gmp
cumsum

(Cumulative) Sums, Products of Large Integers and Rationals
sizeinbase

Compute size of a bigz in a base
solve.bigz

Solve a system of equation
Oakley

RFC 2409 Oakley Groups - Parameters for Diffie-Hellman Key Exchange
apply

Apply Functions Over Matrix Margins (Rows or Columns)
Extremes

Extrema (Maxima and Minima)
Stirling

Eulerian and Stirling Numbers of First and Second Kind
bigz

Large Sized Integer Values
gmp-ifiworkarounds

Base Functions in 'gmp'-ified Versions
lucnum

Compute Fibonacci and Lucas numbers
bigq

Large sized rationals
Random

Generate a random number
bigz_operators

Basic Arithmetic Operators for Large Integers ("bigz")
asNumeric

Coerce to 'numeric', not Loosing Dimensions
extract

Extract or Replace Parts of a 'bigz' or 'bigq' Object
formatN

Format Numbers Keeping Classes Distinguishable