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

Function simplify

problem.py:127–129  ·  view source on GitHub ↗
(n: int, d: int)

Source from the content-addressed store, hash-verified

125
126
127def simplify(n: int, d: int) -> tuple[int, int]:
128 g = _gcd(n, d)
129 return (n // g, d // g)
130
131
132def compare_fn(dep: Dependency) -> tuple[Dependency, str]:

Callers 1

Calls 1

_gcdFunction · 0.70

Tested by

no test coverage detected