Author Topic: TI Graphing Calculator Programs Mini-Megathread  (Read 2414 times)

This thread is entirely about self-made programs for your TI Device (I use a TI-84 Plus Silver Edition, I highly recommend it to anyone who loves TI Graphing Calculators)

If you have a TI Graphing Calculator, take a look at the buttons; if you have a button that says PRGM that means that you are ready to code with TI!

To participate in this thread all you have to do is post any of your self made scripts. You can also discuss about scripts you want to make.

I'll start it off with some useful scripts:


Logarithm Solver

This script will solve a logarithmic equation for the exponent:

:Disp "INPUT BASE"
:Prompt B
:Disp "INPUT PRODUCT"
:Prompt P
:ClrHome
:Disp log(P)/log(B)


Coin Toss

A simple coin toss script:

:randInt(1,2)->K
:If K=1
:Disp "HEADS!"
:If K=2
:Disp "TAILS!"


Countdown

The script prompts you for a starting number, it then counts down from that number by seconds until it reaches 0:

:0->X
:0->J
:Prompt K
:Lbl AQ
:J+1->J
:If J≠100
:Goto AQ
:If J=100
:K-1->K
:If J=100
:0->J
:If K≥0
:ClrHome
:If K≥0
:Disp K+1
:If K<0
:Stop
:Goto AQ


Money Gained Given Interest and Time

This script calculates the amount of money someone owes you given the initial amount, number of days, and interest rate. This script does use lowercase letters for aesthetic purposes.

:0->X
:Disp "How much loaned?"
:Prompt P
:Disp "How many days?"
:Prompt T
:Disp "Interest rate?"
:Prompt R
:Lbl XX
:If X=1
:T-1->T
:If T≤0
:Disp P
:If T≤0
:Stop
:1->X
:P*R->B
:B+P->P
:Goto XX
« Last Edit: April 23, 2012, 09:45:36 PM by Gamefandan »

A calculator that runs scripts?!

i want one

Oh god someone finally posted. Jesus.

Post more I want to see what these things can do

Quote
->K
How do I do that?

I know this is for Texas Instruments calculators, but would it be possible to program on Casio calculators as well? My cousin has an old one that he doesn't use anymore, and I wanted to see if I could program with it.

How do I do that?
The "STO->" button makes the arrow, then use alpha for "K"

2012 - programming with calculators


2012 - programming with calculators
Calculators just as good as their 1996 (and same price) counterparts no less.

Disp "you are a friend"
execute programname


fits perfectly accross ti 84 screens, once you run the program the victim has to hit the on off button to break the program from continuously running, calling them a friend

Calculators just as good as their 1996 (and same price) counterparts no less.

but still

programming

with calculators

oh god i've written a ton for some reason
if i had the patience to type them all out i would but here's a list and you can request if you want i guess
DISTANCE -Solves the distance formula from 2 given points
INITGRAV -Saves variables for Gravity (in m/s), speed of light (in a vacuum in m/s) and the Couloumb, with it being toggleable
MIDPOINT -Solves the midpoint formula from 2 given points
QUADS -Solves reasonably simple quadratic equations and displays the answers as fractions
SLOPE -Solves for the slope of a line from 2 given points
SUMOF -Solves for the of the interior angles of a triangle and also finds the measure of a single angle from a given number of sides
TRIANGLE -Performs the Pythagorean Theorum from A & B because I'm too lazy to reach the 2 button
ZERO -Solves for the zeroes of a line from 2 given points
There are others, but those're the most useful, I think.

Disp "you are a friend"
execute programname


fits perfectly accross ti 84 screens, once you run the program the victim has to hit the on off button to break the program from continuously running, calling them a friend
This is better practice:
Code: [Select]
lbl a
disp "YOU ARE A friend"
goto a

I did an infinite loop program that started whenever you started the calculator and ended up using all of the ram because it did a complex equation with random numbers each time.