I need to find product of two polynomials.
Input:
x+2; x^3-x^2+1
Output:
x^4+x^3-2x^2+x+2
I have two questions:
1) How to extract coeff. from polynomials.
2) How to build new polynomial using new coeff. (output form in example)
I'm not allowed to use additional libraries.