Learn R Programming

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

gmp (version 0.6-8)

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

64,195

Version

0.6-8

License

GPL (>= 2)

Maintainer

Last Published

November 9th, 2022

Functions in gmp (0.6-8)

Bigq

Relational Operators
binomQ

Exact Rational Binomial Probabilities
factorization

Factorize a number
Relational Operator

Relational Operators
extract

Extract or Replace Parts of an Object
cumsum

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

Format Numbers Keeping Classes Distinguishable
nextprime

Next Prime Number
modulus

Modulus of a Big Integer
powm

Exponentiation function
frexpZ

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

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

Matrix manipulation with gmp
roundQ

Rounding Big Rationals ("bigq") to Decimals
factorialZ

Factorial and Binomial Coefficient as Big Integer
gcdex

Compute Bezoult Coefficient
isprime

Determine if number is (very probably) prime
Bigq operators

Basic arithmetic operators for large rationals
lucnum

Compute Fibonacci and Lucas numbers
is.whole

Whole ("Integer") Numbers
sizeinbase

Compute size of a bigz in a base
gmp.utils

GMP Number Utilities
solve.bigz

Solve a system of equation
apply

Apply Functions Over Matrix Margins (Rows or Columns)
BernoulliQ

Exact Bernoulli Numbers
bigz operators

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

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

Eulerian and Stirling Numbers of First and Second Kind
Random

Generate a random number
bigq

Large sized rationals
bigz

Large Sized Integer Values
asNumeric

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

Base Functions in 'gmp'-ified Versions
Extremes

Extrema (Maxima and Minima)