Trinomial Factoring Program on the TI-86, version 2
The web page 208603.htm presents and describes a program that performs
the "split the middle term" scheme for factoring trinomials of the form
Ax2 + Bx + C
Note that we are assuming that A, B, and C are integers, and
that neither A nor C is 0.
As noted at the end of that page, the output of the program is correct, but difficult to read.
This page presents a listing of a new version of that program, one that produces nice looking output.
In order to acheive this nicer looking output, the new program, TRIFACT2, actually uses another
program, TOSTR, which must be available on the calculator.
The listings below are for the TI-86 version of the TRIFACT2 program,
given in three parts, and for the
TOSTR program, given in one part.
The TRIFACT2 listing has been modified with
the tracing lines on the left to help you identify the ranges of the the IF-THEN
and IF-THEN-ELSE
constructs in the program, along with the FOR structure.
TRIFACT2, part 1 |
TRIFACT2, part 2 |
 |
 |
TRIFACT2, part 3 |
TOSTR |
 |
 |
A comparison of part 2 of the TRIFACT2 program with the TRIFACT1
program given on the earlier page,
should confirm that the main part of the
program is unchanged from one version to the other. The extra lines in version 2
are used to format the output of the program so that it looks nicer.
Also, notice that the TRIFACT2 program calls (makes reference to) the TOSTR
program in a number of places.
Naturally, one could enter the programs into a calculator. However, the TI-86 file
for TRIFACT2 in is available at trifact2.86p
and the TI-86 file for TOSTR at tostr.86p.
In addition, the TI-85 file
for TRIFACT2 in is available at trifact2.85p
and the TI-85 file for TOSTR at tostr.85p.
Depending upon your browser, you should be able to save the file to your disk and
then transfer it via TI-Graphlink, assuming you have the program and the required cable.
We conclude this page with few sample runs of the TI-86 version
of the TRIFACT2 program:
Figure 1
|
We open the PRGM menu by pressing the key,
and we open the NAMES submenu by pressing .
Once the submenu is open, we press the key
to move, if need be, to find the TRIFACT2 program.
For the calculator shown in Figure 1, the program that we want is in the fifth position
of the submenu.
We can press the
key to paste TRIFACT2 on tot he screen, as shown in Figure 1.
Then we press to start the program and move to Figure 2.
|
Figure 2
| In Figure 2 the program has started. It has cleared the display and
written the heading,
FACTOR Ax2+Bx+C
at the top. In addition, the calculator has asked for, and we have supplied, values for the
coefficients A, B, and C.
We have entered the value 1 for A,
11 for B and the value 24 for C.
These are the coefficients for
x2 + 11x + 24
The calculator is waiting for us to press to accept the
value for C and to move on with the program.
|
Figure 3
|
Figure 3 shows output from the calculator. It writes the word FACTOR
followed, on the next line, by a restatement of the problem, followed by the
two factors:
(x+8)(x+3)
|
Figure 4
|
The program was completed in Figure 3. To restart it, we press
.
Figure 4 gives the data entry for the problem
20x2 + 13x - 21
Note the negative value for C, namely, 21. |
Figure 5
| To accept our final value and continue the program we press
.
Figure 5 gives the result, namely a restatement of the problem, followed
by the two factors: (5x+7)(4x-3)
|
PRECALCULUS: College Algebra and Trigonometry
© 2000 Dennis Bila, James Egan, Roger Palay