Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/alphageometry
/ frac_string
Function
frac_string
ar.py:73–75 ·
view source on GitHub ↗
(f: frac)
Source
from the content-addressed store, hash-verified
71
72
73
def
frac_string(f: frac) -> str:
74
n, d = get_quotient(f)
75
return
f
'{n}/{d}'
76
77
78
def
hashed(e: dict[str, float]) -> tuple[tuple[str, float], ...]:
Callers
nothing calls this directly
Calls
1
get_quotient
Function · 0.85
Tested by
no test coverage detected