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

Greatest common divisor (GCD)

import { gcd } from 'mz-math';

const res1 = gcd(18, 6); // 6;
const res2 = gcd(18, -6); // 6;
Previous
Series