Learn R Programming

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

gmp (version 0.6-2.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

41,075

Version

0.6-2.1

License

GPL (>= 2)

Maintainer

Antoine Lucas

Last Published

November 2nd, 2021

Functions in gmp (0.6-2.1)

Stirling

Eulerian and Stirling Numbers of First and Second Kind
Oakley

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

Split Number into Fractional and Exponent of 2 Parts
nextprime

Next Prime Number
bigz

Large Sized Integer Values
Extremes

Extrema (Maxima and Minima)
Bigq operators

Basic arithmetic operators for large rationals
cumsum

(Cumulative) Sums, Products of Large Integers and Rationals
is.whole

Whole ("Integer") Numbers
extract

Extract or Replace Parts of an Object
asNumeric

Coerce to 'numeric', not Loosing Dimensions
gmp.utils

GMP Number Utilities
matrix

Matrix manipulation with gmp
factorialZ

Factorial and Binomial Coefficient as Big Integer
modulus

Modulus of a Big Integer
isprime

Determine if number is (very probably) prime
Relational Operator

Relational Operators
bigz operators

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

Relational Operators
roundQ

Rounding Big Rationals ("bigq") to Decimals
lucnum

Compute Fibonacci and Lucas numbers
powm

Exponentiation function
gcd.bigz

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

Compute Bezoult Coefficient
factorization

Factorize a number
sizeinbase

Compute size of a bigz in a base
solve.bigz

Solve a system of equation
BernoulliQ

Exact Bernoulli Numbers
bigq

Large sized rationals
gmp-ifiworkarounds

Base Functions in 'gmp'-ified Versions
Random

Generate a random number
apply

Apply Functions Over Matrix Margins (Rows or Columns)
formatN

Format Numbers Keeping Classes Distinguishable