Documentation
Init
.
Data
.
Int
.
Gcd
Search
Google site search
return to top
source
Imports
Init.Data.Int.Basic
Init.Data.Nat.Gcd
Imported by
Int
.
gcd
gcd
#
source
def
Int
.
gcd
(m :
Int
)
(n :
Int
)
:
Nat
Computes the greatest common divisor of two integers, as a
Nat
.
Equations
Int.gcd
m
n
=
Nat.gcd
(
Int.natAbs
m
)
(
Int.natAbs
n
)
Instances For