TI-83 BASIC Programs... anyone good at them?
Page 1 of 1 [ 5 posts ]
Has anyone here tried to create their own programs using the TI-83 calculator's BASIC system? I do this regularly to help with my Calculus class, I have so many now that I have to keep some in Archive Memory for the calculator. Here's a sample that you math whizzes can use. It's a program to help expand binomials, it makes use of Pascal's Triangle and the Binomial theorem. Here's the code:
Code:
Prgm:BNOMTHRM
Prompt A,B,C,D,N
seq(N nCr X,X,0,N,1)->L.PSCL
seq(M,M,0,N,1)->L.B
N-L.B->L.A
((A^C)^L.A)*((B^D)^L.B)*LPSCL->L.ANS
Disp L.ANS
Return
Prompt A,B,C,D,N
seq(N nCr X,X,0,N,1)->L.PSCL
seq(M,M,0,N,1)->L.B
N-L.B->L.A
((A^C)^L.A)*((B^D)^L.B)*LPSCL->L.ANS
Disp L.ANS
Return
(Note: The syntax for lists is impossible to replicate on the computer, so I've used the notation L. instead. For the actual caluclator program, go to the LIST:OPS menu and scroll down to the last item (shaped like a subscript L.). Press Enter to insert into the program.
This program takes the coefficients of a binomial of the form (Ax^C + By^D)^N and returns a list containing the coefficients of the expanded binomial. You enter the coefficents (A & B) the exponents of each item (C & D), and the binomial exponent (N). Then, using the sequence function and the nCr function, the program recreates row N of Pascal's Triangle and saves it to a list. Finally, it follows the binomial theroem and multiplies this list by the coefficents A & B to the power of C & D to the power of M and N-M. The result is a list N+1 units long with each unit corresponding to a coefficient.
Try it out and see what you think!
_________________
"Yeah, so this one time, I tried playing poker with tarot cards... got a full house, and about four people died." ~ Unknown comedian
Happy New Year from WP's resident fortune-teller! May the cards be ever in your favor.
unreal3x wrote:
Quote:
Prgm:MSFTBSTPGMEVA
: Disp "This is a program"
: Disp "This latest version will never freeze"
: Lbl A
: pause
: pause
: pause
: pause
: pause
: pause
: pause
: pause
: pause
: Disp "Buy this now"
: goto A
: Disp "This is a program"
: Disp "This latest version will never freeze"
: Lbl A
: pause
: pause
: pause
: pause
: pause
: pause
: pause
: pause
: pause
: Disp "Buy this now"
: goto A
ROFL, nice...
_________________
"Yeah, so this one time, I tried playing poker with tarot cards... got a full house, and about four people died." ~ Unknown comedian
Happy New Year from WP's resident fortune-teller! May the cards be ever in your favor.
Page 1 of 1 [ 5 posts ]
Similar Topics | |
---|---|
not good enough |
03 Oct 2024, 5:58 pm |
Are you a good friend |
17 Oct 2024, 1:04 am |
It feels good to get even with a bully |
27 Jul 2024, 3:34 pm |
Are ruthless guys more attractive than kind, good guys? |
06 Sep 2024, 4:56 am |