In this series of tutorials I will teach you how to program in a TI 82 calculator from the very basics. I use a TI 82 calculator and therefor I also use it for my examples but many different Texas Instruments calculator has nearly the same syntax so you don't have to use it with a TI 82.
All my knowledge I have got by testing on boring math lessons so I've tried a lot and know what to do and what you shouldn't do.![]()
Parts in this series:
- Part 1 - The very basics
- Part 2 - If statements and loops
- Part 3 - Receiving Inputs
- Part 4 - Matrixes and Lists
- Part 5 - Creating a Game
Anyway, let's start with Part 1 - The very basics.
First of all we need to create a new program, first press the program button(PRGM).
When you press it you will see three items at the top of the screen saying: EXEC, EDIT and NEW. EXEC is used to run your programs but we'll come to that later on. EDIT is of course to edit an already existing program, and new is to create a new program. Use the arrows to go to NEW and then press enter.
After selecting a name you will be taken to the edit screen. By pressing the PRGM button while here, a list with programming statements will be showed. By selecting one they will be added to your code at selection.
Now write this:
This will simply display CodeCall on the screen when running the program.Code:Disp "CODECALL"
Do NOT write this:
Code:Disp CODECALL
This version without quotes will multiply the values of the variables C, O, D, E, C, A, L and L and display that instead. More to variables later.
Now quit the code editor by pressing the "2nd" and then the "MODE" button to access quit.
Now press the PRGM button again and select your program with enter in the list at EXEC. Then press enter again to run your program. If everything is written correct, you should first see CODECALL on your screen and then Done. "Done" is always displayed when a program has ran all the way and means it's finished.
Variables:
Before this part is finished I will also tell you about variables. Numeric variables is the letters from A to Z, you can also find some other sort of variables by pressing the VARS button.
There's also some other things that can be used to store values(lists and Matrixes etc) but we'll take that later.
To store a variable we'll use the "STO->" button (when I write -> I mean the arrow you write with that button but since that sign doesn't exists on my keyboard I use -> instead).
This is how we store a value in a variable:
This means we take the value 42 and put it into X. If we later on wants to access the value of X we just write "X", like this:Code:42->X
Code:Disp X
This will display the value of X.
So if we want to try this we can modify our code we had in the beginning to this:
Code:"HELLO"->Str1 "CODECALL"->Str2 Disp Str1+" "+Str2
This will store the value "HELLO" in string number 1 and "CODECALL" in string number two, then we displays string number 1 and string number 2 with a space in between. This will give us the output "HELLO CODECALL".
This is all for part number one, cya in part 2![]()
Last edited by Vswe; 08-28-2009 at 04:17 PM.
Wow, impressive tutorial! +rep
Do you think you could attach the images to your thread(s) instead of linking to them on photobucket? I ask because these tutorials won't be accepted to tutorial sites with linked images.![]()
Sure. But I have to redo the images from part 1(Don't have them on this computer but I have the picture of the calculator).
Why don't you just right-click on the image and save it?
Because I'm stupid and tired
![]()
lol
+repThe good old days
![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks