Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/alphageometry
/ simplify
Function
simplify
ar.py:38–40 ·
view source on GitHub ↗
(n: int, d: int)
Source
from the content-addressed store, hash-verified
36
37
38
def
simplify(n: int, d: int) -> tuple[int, int]:
39
g = _gcd(n, d)
40
return
(n // g, d // g)
41
42
43
# maximum denominator for a fraction.
Callers
3
get_quotient
Function · 0.70
get_all_eqs_and_why
Method · 0.70
add_const_angle
Method · 0.70
Calls
1
_gcd
Function · 0.70
Tested by
no test coverage detected