Learn R Programming

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

gmp (version 0.7-2)

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

48,935

Version

0.7-2

License

GPL (>= 2)

Maintainer

Antoine Lucas

Last Published

July 1st, 2023

Functions in gmp (0.7-2)

binomQ

Exact Rational Binomial Probabilities
Bigq

Relational Operators
factorization

Factorize a number
Relational_Operator

Relational Operators
Extremes

Extrema (Maxima and Minima)
factorialZ

Factorial and Binomial Coefficient as Big Integer
cumsum

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

Extract or Replace Parts of an Object
lucnum

Compute Fibonacci and Lucas numbers
formatN

Format Numbers Keeping Classes Distinguishable
is.whole

Whole ("Integer") Numbers
nextprime

Next Prime Number
modulus

Modulus of a Big Integer
gcdex

Compute Bezoult Coefficient
matrix

Matrix manipulation with gmp
isprime

Determine if number is (very probably) prime
powm

Exponentiation function
roundQ

Rounding Big Rationals ("bigq") to Decimals
Bigq_operators

Basic arithmetic operators for large rationals
mpfr

Exported function for mpfr use
sizeinbase

Compute size of a bigz in a base
solve.bigz

Solve a system of equation
gmp.utils

GMP Number Utilities
frexpZ

Split Number into Fractional and Exponent of 2 Parts
gcd.bigz

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

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

Exact Bernoulli Numbers
Stirling

Eulerian and Stirling Numbers of First and Second Kind
apply

Apply Functions Over Matrix Margins (Rows or Columns)
Oakley

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

Large sized rationals
asNumeric

Coerce to 'numeric', not Loosing Dimensions
bigz

Large Sized Integer Values
Random

Generate a random number
gmp-ifiworkarounds

Base Functions in 'gmp'-ified Versions