An open API service indexing awesome lists of open source software.

https://github.com/aschleg/numberr

R package containing number-theoretic algorithms and functions related to number theory.
https://github.com/aschleg/numberr

algorithm number-theory r

Last synced: about 2 months ago
JSON representation

R package containing number-theoretic algorithms and functions related to number theory.

Awesome Lists containing this project

README

        

# numberr

[![Travis-CI Build Status](https://travis-ci.org/aschleg/numberr.svg?branch=master)](https://travis-ci.org/aschleg/numberr)

The numberr package contains many algorithms and functions related to number theory. Most functions are written in `C++` using [Rcpp](https://cran.r-project.org/web/packages/Rcpp/index.html).

## Installation

The Numberr package is currently not on CRAN, thus the best way to install the package in the mean time is to
use the [devtools](https://cran.r-project.org/web/packages/devtools/index.html) package:

~~~~
library(devtools)
install_github("aaron/numberr")
~~~~

## Available Algorithms and Functions

* Constants and Definitions
- Catalan's Constant
* Integer Factorization
- Trial factorization
- Fermat
- Pollard's rho
* Binomial Coefficient
- Recursive, multiplicative and factorial methods
* Factorials
- Stirling's Approximation
- Gosper's natural log Approximation
- Ramanujan's factorial approximation
- Rising and Falling Factorials
- Function representations of rising and falling factorials
* Greatest Common Divisor
- Recursive, division, and subtraction (Euclid) methods
* Least Common Multiple
* Primes and Composite Numbers
- Coprime integers
- squares, composites
* Primality Tests
- Naive method
- Fermat Test
- Lucas-Lehmer
* Sequences
- Catalan
- Cullen
- Fibonacci
- Supercatalan
- Three-n-One
* Miscellaneous
- Modular Exponentiation