Continued fraction/Arithmetic/Construct from rational number: Difference between revisions

Content added Content deleted
Line 1,784: Line 1,784:
write_r2cf (314285714, 100000000)
write_r2cf (314285714, 100000000)


# 3 + 1/7 = 3 + 0.142857...
# 22/7 = 3 + 1/7 = 3 + 0.142857...
write_r2cf (3142857142857142857142857142857142857142857142857142857142857142857142857142857142857142857142857,
write_r2cf (3142857142857142857142857142857142857142857142857142857142857142857142857142857142857142857142857,
1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)