MCPcopy 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

1def 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

fr2fcFunction · 0.85
rangeFunction · 0.85
fc2frFunction · 0.85
fc2decFunction · 0.85

Tested by

no test coverage detected