Learn R Programming

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

gmp (version 0.5-4)

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

52,488

Version

0.5-4

License

GPL

Maintainer

Antoine Lucas

Last Published

February 5th, 2013

Functions in gmp (0.5-4)

bigz

Large Sized Integer Values
Random

Generate a random number
bigz operators

Basic Arithmetic Operators for Large Integers ("bigz")
gcd.bigz

Greatest Common Divisor, Least Common Multiple
isprime

Determine if number is (very probably) prime
bigq

Large sized rationals
factorialZ

Factorial and Binomial Coefficient as Big Integer
Extract

Extract or Replace Parts of an Object
modulus

Modulus of a Big Integer
nextprime

Next Prime Number
gcdex

Compute Bezoult coefficient
lucnum

Compute Fibonacci and Lucas numbers
Extremes

Extrema (Maxima and Minima)
gmp.utils

GMP Number Utilities
apply

Apply Functions Over Matrix Margins (Rows or Columns)
matrix

Matrix manipulation with gmp
solve.bigz

Solve a system of equation
asNumeric

Coerce to 'numeric', not Loosing Dimensions
sizeinbase

Compute size of a bigz in a base
Stirling

Eulerian and Stirling Numbers of First and Second Kind
is.whole

Whole ("Integer") Numbers
frexpZ

Split Number into Fractional and Exponent of 2 Parts
Bigq operators

Basic arithmetic operators for large rationals
Oakley

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

Factorize a number
powm

Exponentiation function
cumsum

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

Format Numbers Keeping Classes Distinguishable
Relational Operator

Relational Operators