MCPcopy Index your code
hub / github.com/google-deepmind/alphageometry / _gcd

Function _gcd

problem.py:121–124  ·  view source on GitHub ↗
(x: int, y: int)

Source from the content-addressed store, hash-verified

119
120
121def _gcd(x: int, y: int) -> int:
122 while y:
123 x, y = y, x % y
124 return x
125
126
127def simplify(n: int, d: int) -> tuple[int, int]:

Callers 1

simplifyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected