Fibonacci with TI Basic
If you want to calculate the first few numbers in the Fibonacci sequence:
: { 1, 1 } -> L1
: 2 -> A
: While 1
: A + 1 -> A
: L1( A - 2 ) + L1( A - 1 ) -> L1
: EndYou will end up with L1, a list of the first few Fibonacci numbers up to nearly 10100, where overflow will occur. If you want to print the numbers too, just add this in the while loop (second last line):
: Disp L1( A )

How do you do the -> thing? is it just a minus sign with a greater than sign stuck together? or what is it? and what’s the key sequence to get it?
Comment by Amanda — January 12, 2008 @ 9:01 pm