[3.31] Store New List Element At Index Greater Than Dimension - Texas Instruments TI-89 Tip List

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

dd→#é
DelVar e1,uu,vv,dd
EndPrgm
Note that svd() creates and deletes global variables e1, uu, vv and dd; your own variables with those
names, if any, will be deleted.
(Credit to Hernan Rivera)

[3.31] Store new list element at index greater than dimension

You can store elements beyond a list's current dimension, if the new index is only one more than the
dimension. For example, suppose we have a list of three elements
{a,b,c}→mylist
then we can store a new fourth element, even though the list has only three elements, like this:
d→mylist[4]
which results in the list {a,b,c,d}. However, this:
f→mylist[6]
results in a Domain error, since the list has only 4 elements at this point, and we are trying to store a
new element to the 6th position.
3 - 38

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92+

Table of Contents