Submit your implementations of plus, mult, eval, and monDiv (specified in Polynomial.h) in a single file named Polynomial.c (note both the spelling and upper/lower case). Polynomial.c must include Polynomial.h. Each function must have a function header explaining any non-obvious details of the algorithm and its implementation. Variables should be named so as to make their purpose obvious, and commented when this is not possible.
Your Polynomial.c must compile when it is located in the same directory as TestPolynomial.c, Polynomial.h, and makefile, and the commands in makefile are executed. Once you have successfully built TestPolynomial, you can test drive it by typing:
TestPolynomial < fourByThree.txt...where you can replace fourByThree.txt with any file (in the same directory as TestPolynomial.c) having the following format:
n m a0 a1 ... an b0 b1 ... bm c0 c1 ... c(m+n) d0 d1 ... d(max(m,n)) x eval1 y eval2 q0 q1 ... q(n-m) r0 r1 ... rk...where the meaning of the cryptic variables is: