Post Reply 
(48) (49) (50) Moebius transforms
11-11-2021, 12:59 PM
Post: #3
RE: (48) (49) (50) Moebius transforms
Updating the Moebius transform program with a new version which is 23 bytes larger but about 30% faster. The improvement comes from pre-calculating the Moebius Mu function of all divisors.

Code:

\<< DUP SIZE R\->I \-> n
  \<< n LSEQ Mu SWAP 1 n
    FOR k DUP2 k DIVIS SWAP OVER LPICK UNROT REV LPICK * LSUM UNROT
    NEXT DROP2 n \->LIST
  \>>
\>>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Moebius transforms - John Keith - 01-19-2021, 09:33 PM
RE: (48) (49) (50) Moebius transforms - John Keith - 11-11-2021 12:59 PM



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