4723 total geeks with 1876 solutions
Recent challengers:
 Welcome, you are an anonymous user! [register] [login]  22/01/2006 

Articles

GEEK

User's box
Username:
Password:

Forgot password?
New account

Shoutbox
anilg
another to the math kitty
sefo
Allez, bonne fin de semaine les jeunes!
grimmy
a bit to close from monday => next exam...
SAJChurchey
TGIF!
bb
IM GREAT!

Donate
Donate and help us fund new challenges
Donate!
Due Date: Jan 31
January Goal: $30.00
Gross: $10.00
Net Balance: $9.31
Left to go: $20.69
Contributors
BloodHound $10 Jan-8

Article viewer

The TI language made short

Written by:optikal
Published by:SAJChurchey
Published on:2004-05-18 17:41:08
Topic:Miscellaneous
Search OSI about Miscellaneous.More articles by optikal.
 viewed 3307 times send this article printer friendly

    Rate this article :
The last TI-83 tutorial got a lot of comments; so I have been asked to make a
follow up. In this article, I will be talking about the "TI language" and a few
functions.

It is possible to program assembler on the various calculators but I am not
going to cover this now.

A few good facts about the TI-83:

The language is a built-in function to the TI-83 and above. It only
displays 10 digits. It might be possible to display more with some
modifications. There are endless mathematical functions and very few
real programming functions. The TI-83 executes the code in the order it has been
written. Unlike most kinds of tutorials, I will skip the "Hello World" and instead
go straight into the loops. The loops worth mentioning is the for, while and
repeat loops. There is another way to make a "loop". Like BASIC you can make a
label somewhere in your code; so, you can jump back later and start over from the
labeled place.

The syntax for the For loop is as follows.

For(variable, begin, end, growth)
commands go here
END


The for loop executes commands until the END command is reached. Variable is
then increased by growth until variable is bigger than end.

Notice that the For() is selected in the catalog. Press the 2nd button and
then catalog. It is important to notice the case. The function For() has two
small case charactors. The same thing goes for everything else (e.g. END != end).

You should get used to finding alot of your functions without going into the
catalog as it takes longer. When you are in the catalog you should notice in the
upper right corner of the screen is the A symbol for ALPHA which triggers the
ALPHA button. In catalog it is on A-Lock. So if you are trying to find the For()
loop you could press the F.

The While loop is as follows:

While condition
commands
END


As long as condition is true, commands will be executed.

The Repeat loop is kind of the opposite of the While loop. It is as follows:

Repeat condition
commands
END


Executes commands until condition is true.


Older TI calculators do not have a modulus function. Here is how you can make
the same function:

I will use the fpart() function to make the modulus function. The syntax for
fpart is as follows.

fpart(value)


It returns the fraction or parts of a real or a complex number.

fpart(7/5)


This returns the value 0.4.


The trick is that you can enter a fraction into fpart and then
multiply the answer with the denominator.

fpart(7/5)*5


This returns the value 2.

Some common functions, like the one Cyben used in his comment on Hacking Ti83,
is ClrHome. It is used to clear the screen, a good function to use in the
beginning of a program.

It is of course also possible to use some input/output functions in your
programs. I will not be covering the input/output functions here.

I am missing alot of functions here; so, please feel free to comment on where to
find more information.

Hope it was a fun read.

Did you like this article? There are hundreds more.

Comments:
Obscurity
2004-05-19 00:28:11
Oh neato, now I need to go get a stupid calculumoolator.
HackMaster321
2004-05-20 01:07:12
we have these calculators at school, and i spent every day of math class programming them, it is mucho fun, cant count the number of times i got yelled at for making a flying bird program when i was supposed to be working
cyben
2004-05-24 18:52:06
I feel with you, HackMaster. I'm coding away whenever I have a valid excuse to have my calculator out (ie. in chem/phys as well) =)
BlurredWeasel
2004-10-31 06:57:39
Heh, I programmed several multithousand byte programs on my TI83. A few tips:

The original 83 had a fairly small memory and you could leave shorten a program a signifigant amount if you leave off closing quotes and parens (at the end of line and also right before a -> symbol).

Uhh, you can use two digit labels (you quickly run out of single letter labels) I use labels as subroutines (define some variables as 'local variables') And just have a goto beginning label (which is a menu system) and an end label (theta typically) to quit.

Anyway, thats enough of this.
kludger
2005-05-03 11:22:08
yeah, all i do in all my class is code with my TI-83+ , so far i wrote an advanced IMing program that is way better then the ones you find the source for on the net... and i wrote a prog that encrypts the Draw screen... yet i still ace all my classes, high school is a joke...
Anonymously add a comment: (or register here)
(registration is really fast and we send you no spam)
BB Code is enabled.
Captcha Number:


Referers: (where the last 10 people to view this article came from..)
Visitor

2006-01-22 05:41:46
http://www.google.com/search?q=TI-83+pro gramming&hl=en&lr=&start=330&sa=N
Visitor

2006-01-22 03:13:23
http://www.google.com/search?hl=en&lr=&q =how+to+find+modulo+TI+83&btnG=Search
Visitor

2006-01-21 14:01:47
http://aolsearch.aol.com/aol/search?encq uery=6e7d55ab439090455639df32507aa2966f5 d5eaf340630a2bf8b29418267c10d123df5a404b dd958&invocationType=keyword_rollover&ie =UTF-8
Visitor

2006-01-16 21:07:30
http://www.google.se/search?q=ti83+menu+ source&hl=sv&lr=&start=10&sa=N
Visitor

2006-01-14 10:39:04
http://www.google.com/search?hs=OEi&hl=e n&lr=&client=opera&rls=en&q=fpart+functi on&btnG=Search
Visitor

2006-01-10 21:08:41
http://www.google.com/search?q=ti-83+fun +programs&hl=en&lr=&start=60&sa=N
Visitor

2005-12-15 22:15:21
http://www.google.com/search?sourceid=na vclient&ie=UTF-8&rls=GGLG,GGLG:2005-42,G GLG:en&q=ti+language
Visitor

2005-12-15 00:17:05
http://search.yahoo.com/search?p=fun+TI+ 83+programs&ei=UTF-8&fl=0&pstart=1&fr=FP -tab-web-t&b=81
Visitor

2005-12-14 00:13:37
http://www.google.com/search?hl=en&q=ti- 83+modulus
Visitor

2005-12-11 21:58:15
http://www.google.com/search?q=modulo+on +TI-83%2B&hl=en&lr=&safe=off&client=fire fox-a&rls=org.mozilla:en-US:official_s&s tart=20&sa=N


     
Your Ad Here
 
Copyright Open Source Institute, 2005