Learn R Programming

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

gmp (version 0.6-5)

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

41,075

Version

0.6-5

License

GPL (>= 2)

Maintainer

Antoine Lucas

Last Published

March 17th, 2022

Functions in gmp (0.6-5)

Random

Generate a random number
Oakley

RFC 2409 Oakley Groups - Parameters for Diffie-Hellman Key Exchange
bigz operators

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

Exact Rational Binomial Probabilities
isprime

Determine if number is (very probably) prime
Relational Operator

Relational Operators
extract

Extract or Replace Parts of an Object
bigq

Large sized rationals
Bigq operators

Basic arithmetic operators for large rationals
matrix

Matrix manipulation with gmp
factorization

Factorize a number
factorialZ

Factorial and Binomial Coefficient as Big Integer
frexpZ

Split Number into Fractional and Exponent of 2 Parts
Bigq

Relational Operators
powm

Exponentiation function
cumsum

(Cumulative) Sums, Products of Large Integers and Rationals
gcd.bigz

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

Extrema (Maxima and Minima)
solve.bigz

Solve a system of equation
gmp.utils

GMP Number Utilities
lucnum

Compute Fibonacci and Lucas numbers
gcdex

Compute Bezoult Coefficient
is.whole

Whole ("Integer") Numbers
formatN

Format Numbers Keeping Classes Distinguishable
modulus

Modulus of a Big Integer
roundQ

Rounding Big Rationals ("bigq") to Decimals
nextprime

Next Prime Number
sizeinbase

Compute size of a bigz in a base
BernoulliQ

Exact Bernoulli Numbers
Stirling

Eulerian and Stirling Numbers of First and Second Kind
apply

Apply Functions Over Matrix Margins (Rows or Columns)
asNumeric

Coerce to 'numeric', not Loosing Dimensions
gmp-ifiworkarounds

Base Functions in 'gmp'-ified Versions
bigz

Large Sized Integer Values