Documentation ¶
Overview ¶
Package gcd implements algorithms related to the greatest common divisor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Calc ¶
func Calc[T constraints.Integer](a, b T) T
Calc calculates the greatest common divisor of a and b using the Euclidean algorithm.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.