Store Variables, Functions & Formulas on a TI-89
The TI-89 can store almost anything in a named variable: a number, an expression, a list, a matrix or a whole function. The two tools you need are the STO► key and the Define command.
These steps are for the TI-89 / TI-89 Titanium handheld, from Texas Instruments' guidebook. Our online TI-89 calculator runs PedroM, a free third-party operating system and doesn't support every handheld feature, so check what it offers before following along there.
Store a number with STO►
Type the value, press STO► (the key just above ON), type a name and press ENTER:
5→a → 5
a^2+1 → 26
The arrow on screen is the STO► symbol. The value stays stored until you change or delete it, even after you turn the calculator off.
Store an expression
x^2+3x→expr1
expr1|x=2 → 10
The | ("with") key substitutes a value without storing anything in x.
Store a formula as a function (Define)
Use Define (F4 (Other) → Define) when you want to plug in different values:
Define area(r)=π*r^2
area(3) → 9·π
area(2.5) → 19.635
Functions can have several arguments: Define v(l,w,h)=l*w*h, then v(2,3,4) gives 24. You can also differentiate or integrate them: d(area(r),r) → 2·π·r.
This is the closest thing to "storing a command". For multi-step routines, write a function or a program. See TI-BASIC.
Naming rules
- Up to 8 characters, starting with a letter. Letters and digits are fine, such as
vol2. xyis one variable, not x times y. Typex*yfor a product.- You can't use system names such as
xmin,y1or function names likesin. - Upper and lower case are the same variable.
See and manage your variables: VAR-LINK
Press 2ND − to open VAR-LINK, which lists every variable with its type (EXPR, LIST, MAT, FUNC, PRGM and so on) and size. From F1 (Manage) you can:
- delete, copy, rename and move variables,
- lock a variable so it can't be changed,
- archive a variable to Flash memory so a RAM reset doesn't erase it,
- create a folder.
Highlight a variable and press ENTER to paste its name into the entry line.
Delete variables
| Task | How |
|---|---|
| clear all one-letter variables a–z | 2ND F1 (Clean Up) → Clear a–z, then ENTER |
| delete one variable | DelVar a (in F4 (Other)), or delete it in VAR-LINK |
| delete everything | reset memory. See reset a TI-89 |
Clearing a–z is the fix for many "wrong answer" problems. If x holds 3, solve(x^2=9,x) won't behave as expected.
Folders
Folders keep variables for different classes separate.
NewFold physicscreates a folder.- MODE → Current Folder switches to it.
- Variables are created in the current folder. Refer to one in another folder as
main\a.
Check memory
Press 2ND 6 (MEM) to see how much RAM and Flash memory is in use and what kinds of data are using it. Archive large variables you rarely change to free RAM.
Common problems
| Problem | Fix |
|---|---|
| answers come out as numbers instead of formulas | a variable used in the expression has a value. Clear a–z |
| Undefined variable | the name is misspelled or in another folder. See undefined variable errors |
| can't store to a name | it's a reserved or locked name. Choose another or unlock it |
| Memory error | archive or delete large variables (2ND −) |