Plus42 Equations, Preview Release
|
06-16-2022, 04:27 PM
(This post was last modified: 06-16-2022 05:42 PM by Ajaja.)
Post: #753
|
|||
|
|||
RE: Plus42 Equations, Preview Release
Yes, I gravely underestimated the scale of the recursion. Just tested, the similar keystroke program works only 10-20% faster:
Code: 00 { 33-Byte Prgm } P.S. With memorization it's MUCH faster Code: FIB(N):0*IF(MAT?(M):0:MROWS(L(M:NEWMAT(N:1))))+0*IF(MROWS(M)<N:MROWS(L(M:NEWMAT(N:1))):0)+IF(N≤1:N:IF(M[N:1]=0:L(M[N:1]:FIB(N-2)+FIB(N-1)):M[N:1])) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)