@03matteo/combinatorics

3.0.1 • Public • Published

What is this?

Gives back the result of the type of combinatorics given.

Installation

npm i @03matteo/combinatorics

Then...

const {
    Disposition,
    Permutation,
    Combination,
    getFactorial
} = require('@03matteo/combinatorics');

const disp = new Disposition(n, k).reps(<true|false>)
const perm = new Permutation(n, [h1, h2, h3, ...]).reps(<true|false>)
const comb = new Combination(n, k).reps(<true|false>)

const fact = getFactorial(number)

Package Sidebar

Install

npm i @03matteo/combinatorics

Weekly Downloads

3

Version

3.0.1

License

MIT

Unpacked Size

5.88 kB

Total Files

8

Last publish

Collaborators

  • 03matteo