Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ recipe-578936.py
File
recipe-578936.py
recipes/Python/578936_Continous_Fractions/recipe-578936.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
fr2fc(a,b,t):
2
"Return continuos fraction fc0 [a1,a2,a3,...at] from a fraction a/b"
3
a=float(a);b=float(b);t0=0
4
fc0=[];c=(a/b);pe=int(c);pf=c-pe
Callers
nothing calls this directly
Calls
4
fr2fc
Function · 0.85
range
Function · 0.85
fc2fr
Function · 0.85
fc2dec
Function · 0.85
Tested by
no test coverage detected