TIB: Re: Operating Lists on the TI-89?


[Prev][Next][Index][Thread]

TIB: Re: Operating Lists on the TI-89?




When storing or retrieving entries from a list, use brackets, not
parenthesis.  The error you are receiving is due to the fact that when you
enter a variable followed by parenthesis, it's looking for a program to run
with the content of the parenthesis as the arguments:

l(a)
would try to run the program l with a as an argument.

When storing information into a list using a variable as the element number,
the variable must be defined:

when executing
{1,2,3} -> list[var]
var must have a number assigned to it.

I would recommend that you read the "Data/Matrix Editor" section of your
Guidebook to learn about accessing data and matrix elements, since they are
a bit trickier.

-----Original Message-----
From: QmH@aol.com <QmH@aol.com>
To: ti-basic@lists.ticalc.org <ti-basic@lists.ticalc.org>
Date: Thursday, January 28, 1999 9:37 PM
Subject: TIB: Operating Lists on the TI-89?


>
>
>When you store a list, lets say to l and type in l(a), where a is an
element,
>it has an error.. why does it work?
>
>on the 86 if you type in
>{1,2,3} ---> l
>l(2)
>        and then it displays 2, since 2 is the second element of that list
>
>
>on the 89 if you type in
>{1,2,3} ---> l
>l(2)
>        it displays "Error:  Not a function" or something like that....
How
>do you display an element of a list on the 89?
>
>
>
>Thanks,
>
>