foil TI-82 Source Code - Skip Header

foil TI-82 Source Code

This is intended to be the human readable version of the source code for FOIL. This version is intended to work only on the TI-82 Texas Instruments graphic calculator. Also available: Documentation about "FOIL" and versions of the program for other calculators and in other formats.

Any line that begins with a backslash is a comment and should not be entered into the calculator. (Comments have been colored green) For an authoritative copy of this program's source code that can be imported to the calculator via a computer, consult the text version of FOIL source code for the TI-82, along with the character reference. The special character reference also gives an overview of all non-ASCII characters for the calculator, and shows the menus in which they can be found.

\START82\
\COMMENT=Program file dated 04/10/96, 18:39
\NAME=FOIL
:Lbl 4
:ClrHome
:Input "NUM POLYNOMIALS?",E
:If (E<2)+(int E≠E)>0
:Goto 4
:ClrHome
:1→F
:Lbl 3
:If F=1
:1→G
:If F=2
:3→G
:If F=3
:5→G
:If F≥4
:7→G
:Disp "ENTER POL"
:Output(G,11,F)
:Output(G,13,"{L1}")
:Input L1
:If F=1
:Then
:L1→L2
:F+1→F
:Goto 3
:End
:1-Var Stats L1
:n→A
:1-Var Stats L2
:n→B
:0→C
:0→D
:A+B-1→dim L3
:Fill(0,L3)
:Lbl 1
:D+1→D
:0→C
:Lbl 2
:C+1→C
:L1(C)*L2(D)+L3(C+D-1)→L3(C+D-1)
:If C<A
:Goto 2
:If D<B
:Goto 1
:If E>F
:Then
:L3→L2
:F+1→F
:Goto 3
:End
:dim L3-1→H
:Disp H
:Goto A
:COPYRIGHT STEPHEN OSTERMILLER 1996
:Lbl A
:L3
\STOP82\