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

Function _gcd

pretty.py:51–54  ·  view source on GitHub ↗
(x: int, y: int)

Source from the content-addressed store, hash-verified

49
50
51def _gcd(x: int, y: int) -> int:
52 while y:
53 x, y = y, x % y
54 return x
55
56
57def simplify(n: int, d: int) -> tuple[int, int]:

Callers 1

simplifyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected