Jump to content

Calkin-Wilf sequence: Difference between revisions

m
(Added Quackery.)
Line 1,863:
 
=={{header|Quackery}}==
 
<code>cf</code> is defined at [[Continued fraction/Arithmetic/Construct from rational number#Quackery]].
 
<lang Quackery> [ $ "bigrat.qky" loadfile ] now!
Line 1,875 ⟶ 1,877:
 
[ 1 & ] is odd ( n --> b )
 
[ [] unrot
[ proper
2swap join unrot
over 0 != while
1/v again ]
2drop ] is cf ( n/d --> [ )
 
[ dup size odd not if
1,493

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.