76
Off Topic / TI Graphing Calculator Programs Mini-Megathread
« on: April 23, 2012, 05:21:57 PM »
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
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