Learn R Programming

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

gmp (version 0.5-13.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

54,462

Version

0.5-13.2

License

GPL

Maintainer

Antoine Lucas

Last Published

July 14th, 2018

Functions in gmp (0.5-13.2)

matrix

Matrix manipulation with gmp
gmp.utils

GMP Number Utilities
is.whole

Whole ("Integer") Numbers
modulus

Modulus of a Big Integer
nextprime

Next Prime Number
lucnum

Compute Fibonacci and Lucas numbers
factorialZ

Factorial and Binomial Coefficient as Big Integer
Bigq operators

Basic arithmetic operators for large rationals
powm

Exponentiation function
sizeinbase

Compute size of a bigz in a base
isprime

Determine if number is (very probably) prime
apply

Apply Functions Over Matrix Margins (Rows or Columns)
Relational Operator

Relational Operators
bigz operators

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

Coerce to 'numeric', not Loosing Dimensions
Bigq

Relational Operators
bigz

Large Sized Integer Values
extract

Extract or Replace Parts of an Object
cumsum

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

Format Numbers Keeping Classes Distinguishable
factorization

Factorize a number
Stirling

Eulerian and Stirling Numbers of First and Second Kind
gcd.bigz

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

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

Extrema (Maxima and Minima)
bigq

Large sized rationals
gcdex

Compute Bezoult Coefficient
frexpZ

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

Solve a system of equation
Random

Generate a random number