I was playing around with programming on my TI-84 in math class today and I decide to try to write a program that reads an equation and than does a few things with it. But I'm having trouble reading an equation. I tried :Prompt Y1
but I kept getting a data type error when I try to use the program. Does anyone have any ideas on how to accomplish this? Thanks in advance.
-
8+1 for asking about TI calculators. You made my day. – John Alexiou Mar 29 '11 at 19:56
3 Answers
Alternatively, you can do
:Input "Eqn:",Str1
:String>Equ(Str1,Y1)
:DispGraph
This way you don't have to put in quotation marks each time you enter an equation.
As noted by Timtech, there is an easier way of writing this.
:String►Equ(Str1,Y1 can be :Str1→Y1
This replacement is universal, takes the same time to run (because it actually uses the same routines), is more convenient to type since you don't have to go through the command catalog, and is two bytes smaller.

- 548
- 6
- 17
-
1This is what I use for any program that needs an equation, and it works great. – JFed-9 May 27 '16 at 14:45
-
2
-
I'm not sure if the TI-84 is the same, but on the 83 this will work if you put the equation in quotes when you enter it. So for example, using the following program:
PROGRAM:TEST
:Prompt Y1
:ClrDraw
:DispGraph
Running it:
prgmTEST
Y1=?"2X+1"
Will cause the graph for y=2x+1 to be drawn (and any other equations you already had entered at the time, IIRC).

- 35,455
- 10
- 90
- 93
-
1Yep, that did the trick. I just needed to put my equation in quotes. Thanks. – Adam P Mar 29 '11 at 19:56
-
Texas Instruments has guide books online for some of their programmable calculators. Here's the PDF for the TI-84 plus: http://education.ti.com/guidebooks/graphing/84p/TI84PlusGuidebook_Part2_EN.pdf. Check out chapter 16 on programming.

- 942
- 1
- 9
- 27