Learn R Programming

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

gmp (version 0.6-0)

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-0

License

GPL (>= 2)

Maintainer

Antoine Lucas

Last Published

June 9th, 2020

Functions in gmp (0.6-0)

gmp-ifiworkarounds

Base Functions in 'gmp'-ified Versions
Random

Generate a random number
Relational Operator

Relational Operators
Bigq

Relational Operators
bigq

Large sized rationals
bigz operators

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

Coerce to 'numeric', not Loosing Dimensions
apply

Apply Functions Over Matrix Margins (Rows or Columns)
cumsum

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

Large Sized Integer Values
Oakley

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

Matrix manipulation with gmp
extract

Extract or Replace Parts of an Object
Stirling

Eulerian and Stirling Numbers of First and Second Kind
Extremes

Extrema (Maxima and Minima)
isprime

Determine if number is (very probably) prime
lucnum

Compute Fibonacci and Lucas numbers
factorialZ

Factorial and Binomial Coefficient as Big Integer
formatN

Format Numbers Keeping Classes Distinguishable
modulus

Modulus of a Big Integer
Bigq operators

Basic arithmetic operators for large rationals
frexpZ

Split Number into Fractional and Exponent of 2 Parts
factorization

Factorize a number
gcdex

Compute Bezoult Coefficient
powm

Exponentiation function
is.whole

Whole ("Integer") Numbers
nextprime

Next Prime Number
gcd.bigz

Greatest Common Divisor (GCD) and Least Common Multiple (LCM)
solve.bigz

Solve a system of equation
sizeinbase

Compute size of a bigz in a base
gmp.utils

GMP Number Utilities