Learn R Programming

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

gmp (version 0.7-4)

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

45,336

Version

0.7-4

License

GPL (>= 2)

Maintainer

Last Published

January 15th, 2024

Functions in gmp (0.7-4)

bigz

Large Sized Integer Values
BernoulliQ

Exact Bernoulli Numbers
bigq

Large sized rationals
Oakley

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

Generate a random number
gmp-ifiworkarounds

Base Functions in 'gmp'-ified Versions
apply

Apply Functions Over Matrix Margins (Rows or Columns)
Stirling

Eulerian and Stirling Numbers of First and Second Kind
bigz_operators

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

Coerce to 'numeric', not Loosing Dimensions
binomQ

Exact Rational Binomial Probabilities
Relational_Operator

Relational Operators
extract

Extract or Replace Parts of an Object
cumsum

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

Compute Fibonacci and Lucas numbers
factorialZ

Factorial and Binomial Coefficient as Big Integer
Bigq

Relational Operators
factorization

Factorize a number
Extremes

Extrema (Maxima and Minima)
formatN

Format Numbers Keeping Classes Distinguishable
gcd.bigz

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

Basic arithmetic operators for large rationals
frexpZ

Split Number into Fractional and Exponent of 2 Parts
nextprime

Next Prime Number
isprime

Determine if number is (very probably) prime
modulus

Modulus of a Big Integer
solve.bigz

Solve a system of equation
is.whole

Whole ("Integer") Numbers
sizeinbase

Compute size of a bigz in a base
matrix

Matrix manipulation with gmp
mpfr

Exported function for mpfr use
gmp.utils

GMP Number Utilities
gcdex

Compute Bezoult Coefficient
roundQ

Rounding Big Rationals ("bigq") to Decimals
powm

Exponentiation function