MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / _gcd

Function _gcd

ar.py:32–35  ·  view source on GitHub ↗
(x: int, y: int)

Source from the content-addressed store, hash-verified

30
31
32def _gcd(x: int, y: int) -> int:
33 while y:
34 x, y = y, x % y
35 return x
36
37
38def simplify(n: int, d: int) -> tuple[int, int]:

Callers 1

simplifyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected