This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Polynomial c = new Polynomial(0, a.degree + b.degree); for (int i = 0; i <= a.degree; i++) for (int j = 0; j <= b.degree; j++) c.coef[i+j] += (a.coef[i] * b.coef[j]); c.degree = a.degree + b.degree; return c; } }...
View Full Document
This note was uploaded on 10/12/2009 for the course CSC CSC 110 taught by Professor Anne during the Fall '04 term at University of Victoria.
- Fall '04