Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
127
def
simplify(n: int, d: int) -> tuple[int, int]:
128
g = _gcd(n, d)
129
return
(n // g, d // g)
130
131
132
def
compare_fn(dep: Dependency) -> tuple[Dependency, str]:
Callers
1
setup_str_from_problem
Method · 0.70
Calls
1
_gcd
Function · 0.70
Tested by
no test coverage detected