Quantcast
Viewing latest article 1
Browse Latest Browse All 6

Printing out a set of lists in the ti-84 ti-basic

I want to be able to print out L1 up to Lk (lists in the ti-84) for some arbitrary number k.

Lists in ti-basic are essentially one-dimensional arrays used to store a real or complex number into each of their elements.

Below I made my own lists named L1, … L3 (not built in, in reality can be accessed and printed by typing LL1, … LL3)

I will show you some of what I tried, etc.

let L5 = {5,5,5}

If I try the following code snippet:

PROGRAM: ITRTLST
:ClrHome
:Disp LL1
:For(J,1,3
:Disp J
:Disp LL5
:End
This code outputs:

1

{5,5,5}

2

{5,5,5}

3

{5,5,5}

Note the first 'L' in LL5 is a token (accessible by pressing [2nd]+[LIST(STAT)] OPS B:)

However if I try the following code snippet:

PROGRAM: ITRTLST
:ClrHome
:Disp LL1
:For(k,1,3
:Disp J
:Disp LLk
:End
I get ERR:UNDEFINED

This is because it thinks of 'LLK' as a list name rather than LL1, LL2, LL3

We can see this if I let LLK = {1,2,3} then the above code outputs

1

{1,2,3}

2

{1,2,3}

3

{1,2,3}


Viewing latest article 1
Browse Latest Browse All 6

Trending Articles