Anonymous user
Continued fraction/Arithmetic/Construct from rational number: Difference between revisions
Continued fraction/Arithmetic/Construct from rational number (view source)
Revision as of 03:21, 18 January 2017
, 7 years ago→{{header|zkl}}: update
(→{{header|REXX}}: re-added the REXX program source text.) |
m (→{{header|zkl}}: update) |
||
Line 1,327:
Light weight, explicit state:
<lang zkl>fcn r2cf(nom,dnom){ // -->Walker (iterator)
Walker.tweak(fcn(
nom,dnom:=state;
if(dnom==0) return(Void.Stop);
Line 1,333:
state.clear(dnom,d);
n
}.
}</lang>
Heavy weight, implicit state:
|