Learn R Programming

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

gmp (version 0.6-2)

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

License

GPL (>= 2)

Maintainer

Last Published

January 7th, 2021

Functions in gmp (0.6-2)

asNumeric

Coerce to 'numeric', not Loosing Dimensions
BernoulliQ

Exact Bernoulli Numbers
apply

Apply Functions Over Matrix Margins (Rows or Columns)
bigq

Large sized rationals
Oakley

RFC 2409 Oakley Groups - Parameters for Diffie-Hellman Key Exchange
gmp-ifiworkarounds

Base Functions in 'gmp'-ified Versions
bigz operators

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

Generate a random number
Stirling

Eulerian and Stirling Numbers of First and Second Kind
bigz

Large Sized Integer Values
formatN

Format Numbers Keeping Classes Distinguishable
frexpZ

Split Number into Fractional and Exponent of 2 Parts
Relational Operator

Relational Operators
factorization

Factorize a number
matrix

Matrix manipulation with gmp
modulus

Modulus of a Big Integer
Extremes

Extrema (Maxima and Minima)
lucnum

Compute Fibonacci and Lucas numbers
isprime

Determine if number is (very probably) prime
is.whole

Whole ("Integer") Numbers
Bigq

Relational Operators
powm

Exponentiation function
factorialZ

Factorial and Binomial Coefficient as Big Integer
roundQ

Rounding Big Rationals ("bigq") to Decimals
nextprime

Next Prime Number
Bigq operators

Basic arithmetic operators for large rationals
sizeinbase

Compute size of a bigz in a base
cumsum

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

Solve a system of equation
gcd.bigz

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

Compute Bezoult Coefficient
gmp.utils

GMP Number Utilities
extract

Extract or Replace Parts of an Object