Learn R Programming

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

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

Copy Link

Version

Install

install.packages('gmp')

Monthly Downloads

108,415

Version

0.4-1

License

GPL

Maintainer

Antoine Lucas

Last Published

February 9th, 2026

Functions in gmp (0.4-1)

Bigq operators

Basic arithmetic operators for large rationals
Extract

Extract or Replace Parts of an Object
nextprime

Next prime number
isprime

Determine if number is prime
apply

apply over a matrix
modulus

Modulus
lucnum

Compute Fibonacci and Lucas numbers
powm

Exponentiation function
[.bigz

Extract or Replace Parts of an Object
bigz

Large sized integer values
factorization

Factorize a number
gcdex

Compute Bezoult coefficient
bigz operators

Basic arithmetic operators for large integers
sizeinbase

Compute size of a bigz in a base
solve.bigz

Solve a system of equation
matrix

Matrix manipulation with gmp
gcd.bigz

Great common divisor, Least common multiple
Random

Generate a random number
bigq

Large sized rationals
cumsum

Cummulative, product
Extremes

Returns the maxima and minima of the input values.
Oakley

RFC 2409 Oakley Groups - Standardized Parameters for Diffie-Hellman Key Exchange
Relational Operator

Relational Operators