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

Content added Content deleted
Line 302: Line 302:


== A vanilla version: ==
== A vanilla version: ==

<lang J>
<lang J>
f =: 3 : 0
f =: 3 : 0
Line 312: Line 311:
out=. out , <. a%b
out=. out , <. a%b
end.
end.
out
)
)
f 14142136 10000000
f 14142136 10000000
1 2 2 2 2 2 2 2 2 2 6 1 2 4 1 1 2 _
1 2 2 2 2 2 2 2 2 2 6 1 2 4 1 1 2 _


</lang>
</lang>