Main
Vectors
Matrix
Matrix Manipulation
Transformation Matrices
Angles
Random
Bezier Curve
Equations
Path Movement
Color
Linear Interpolation
Derivatives
Collision Detection
Animation
Circle And Ellipse
Sequence
Combinatorics
Other

Combinatorics

import {
    permutationsWithRepetition,
    permutationsWithoutRepetition,
    combinationsWithoutRepetition,
    combinationsWithRepetition,
} from 'mz-math';

const res1 = permutationsWithRepetition(3, 2); // 9
const res2 = permutationsWithoutRepetition(4, 4); // 24
const res3 = combinationsWithoutRepetition(16, 3); // 560
const res4 = combinationsWithRepetition(5, 3); // 35