Opus5.Application4

Explanation

This application illustrates the implementation of polynomials using sorted lists. It uses the Term class given in Program 7.30, the Polynomial interface given in Program 7.20, and the PolynomialAsSortedList class given in Program 7.31.

The source code for the main method is available here.

Instructions

This is a non-interactive program that creates and prints two polynomials, and then adds the two polynomials and prints the result.


Bruno
Copyright © 1999 by Bruno R. Preiss, P.Eng. All rights reserved.