Post Reply 
TI-60: Triangle Numbers
12-16-2018, 05:33 PM
Post: #2
RE: TI-60: Triangle Numbers
(12-16-2018 03:35 AM)Eddie W. Shore Wrote:  Here I exploit TI-60's RST function's ability to continue program execution and using the square root function as a "tester" to calculate triangle numbers.

This is essentially a "proof of concept" on how to do loops on a calculator with an extremely limited function set without tests and goto – rskey.org calls the TI-60 "almost programmable". ;-)

In real life, if you want the sum of all integers from 1 to n you'd of course use the direct formula ½n(n+1) or ½(n²+n). Less steps, direct result.

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


Messages In This Thread
TI-60: Triangle Numbers - Eddie W. Shore - 12-16-2018, 03:35 AM
RE: TI-60: Triangle Numbers - Dieter - 12-16-2018 05:33 PM
RE: TI-60: Triangle Numbers - grsbanks - 12-16-2018, 07:08 PM
RE: TI-60: Triangle Numbers - Thomas Klemm - 12-16-2018, 09:56 PM
RE: TI-60: Triangle Numbers - ijabbott - 12-17-2018, 02:55 PM
RE: TI-60: Triangle Numbers - Thomas Klemm - 12-19-2018, 04:23 AM



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