Learn R Programming

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

gmp (version 0.7-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

52,488

Version

0.7-1

License

GPL (>= 2)

Maintainer

Antoine Lucas

Last Published

February 7th, 2023

Functions in gmp (0.7-1)

Random

Generate a random number
BernoulliQ

Exact Bernoulli Numbers
Stirling

Eulerian and Stirling Numbers of First and Second Kind
gmp-ifiworkarounds

Base Functions in 'gmp'-ified Versions
bigz_operators

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

Large sized rationals
asNumeric

Coerce to 'numeric', not Loosing Dimensions
bigz

Large Sized Integer Values
apply

Apply Functions Over Matrix Margins (Rows or Columns)
Oakley

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

Extrema (Maxima and Minima)
extract

Extract or Replace Parts of an Object
cumsum

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

Factorial and Binomial Coefficient as Big Integer
Relational_Operator

Relational Operators
Bigq

Relational Operators
factorization

Factorize a number
binomQ

Exact Rational Binomial Probabilities
lucnum

Compute Fibonacci and Lucas numbers
formatN

Format Numbers Keeping Classes Distinguishable
Bigq_operators

Basic arithmetic operators for large rationals
isprime

Determine if number is (very probably) prime
frexpZ

Split Number into Fractional and Exponent of 2 Parts
matrix

Matrix manipulation with gmp
modulus

Modulus of a Big Integer
gcd.bigz

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

Compute Bezoult Coefficient
is.whole

Whole ("Integer") Numbers
nextprime

Next Prime Number
powm

Exponentiation function
solve.bigz

Solve a system of equation
gmp.utils

GMP Number Utilities
sizeinbase

Compute size of a bigz in a base
roundQ

Rounding Big Rationals ("bigq") to Decimals