15–22 Mathematics Programs
File name 33s-E-Manual-1008-Publication(1st).doc Page : 386
Printed Date : 2003/10/8 Size : 13.7 x 21.2 cm
Program Listing:
Program Lines:
(In RPN mode)
Description
Defines the beginning of the polynomial root finder
routine.
Prompts for and stores the order of the polynomial.
Uses order as loop counter.
Checksum and length: 5CC4 9
Starts prompting routine.
Prompts for a coefficient.
Counts down the input loop.
Repeats until done.
Uses order to select root finding routine.
Starts root finding routine.
Checksum and length: 588B 21
Evaluates polynomials using Horner's method, and
synthetically reduces the order of the polynomial using
the root.
Uses pointer to polynomial as index.
Starting value for Horner's method.
Checksum and length: 0072 24
Starts the Horner's method loop.
Saves synthetic division coefficient.
Multiplies current sum by next power of x.
Adds new coefficient.
Counts down the loop.
Repeats until done.
Checksum and length: 2582 21
Starts solver setup routine.
Stores location of coefficients to use.