Post Reply 
(50g) Fun with Farey sequences
06-18-2015, 09:33 PM
Post: #8
RE: (50g) Fun with Farey sequences
(06-15-2015 10:34 PM)Tugdual Wrote:  The 48 code is very slim.

This program avoids the STO command:
Code:
\<< \-> n
    \<< { [ 0 1 ] } 0 1 DUP n
        WHILE OVER n <
        REPEAT \-> a b c d
            \<< c d \->V2 +
                c d
                n b + d / IP
                DUP c * a -
                SWAP d * b -
            \>>
        END
        DROP2 DROP2
    \>>
\>>

Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(50g) Fun with Farey sequences - Tugdual - 06-15-2015, 08:37 PM
RE: (50g) Fun with Farey sequences - Thomas Klemm - 06-18-2015 09:33 PM



User(s) browsing this thread: 1 Guest(s)