(49g 50g) Fast Pascal's triangle and its relatives

08202018, 12:43 AM
Post: #5




RE: (49g 50g) Fast Pascal's triangle and its relatives
(08192018 02:14 PM)John Keith Wrote: By definition, each entry in Pascal's triangle is the sum of the two numbers above it. This leads to a very fast method of computing a row of Pascal's triangle given the previous row (as a list) on the stack: Smaller but a tad slower (just thinking of alternative methods for fun): Code: \<< 0 + LASTARG SWAP + ADD \>> <0ΙΈ0> Joe 

« Next Oldest  Next Newest »

Messages In This Thread 
(49g 50g) Fast Pascal's triangle and its relatives  John Keith  08112018, 04:58 PM
RE: (49g 50g) Fast Pascal's triangle and its relatives  Joe Horn  08122018, 12:41 AM
RE: (49g 50g) Fast Pascal's triangle and its relatives  John Keith  08122018, 02:12 PM
RE: (49g 50g) Fast Pascal's triangle and its relatives  John Keith  08192018, 02:14 PM
RE: (49g 50g) Fast Pascal's triangle and its relatives  Joe Horn  08202018 12:43 AM
RE: (49g 50g) Fast Pascal's triangle and its relatives  John Keith  08202018, 12:15 PM
RE: (49g 50g) Fast Pascal's triangle and its relatives  Thomas Klemm  03022019, 07:12 PM
RE: (49g 50g) Fast Pascal's triangle and its relatives  John Keith  01282020, 06:12 PM
RE: (49g 50g) Fast Pascal's triangle and its relatives  John Keith  12152021, 07:31 PM

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