Errata for Assignment 1:
From: heap@cs.utoronto.ca (Danny Heap)
Subject: ERRATA
Newsgroups: ut.ecf.ece242
Date: 20 Sep 2002 19:36:08 GMT
In Polynomial.h two #defines are added:
#define ZERO_DEGREE -1
#define OVERFLOW -2
... and the comment for poly_t now says that the zero polynomial has
degree==ZERO_DEGREE and coefficient NULL.
TestPolynomial.c has been modified to work properly with zero polynomials.
Also notice that you are allowed to modify TestPolynomial.c in any way
you see fit. To use the provided test data type:
./TestPolynomial < fourByThree.txt
The recipe for monic division (in the handout) has the words "times
the leading coefficient of P2 (either 1 or -1)" added to point 2(a),
to make clear how to construct the quotient. The required complexity
should be O(n^3) NOT O(n) The last sentence of "What to submit" how
says "poly2 must be monic and of degree no greater than poly1" (not
poly2!).
So, please pick up new Polynomial.h, TestPolynomial.c, and the handout itself.