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

Factorial

import { factorial } from 'mz-math';

const res1 = factorial(5); // 1*2*3*4*5 = 120
const res2 = factorial(5, 3); // 3*4*5 = 60