Hi,

I have to write a program that creates a polynomial with n coefficients and performs different operations. eg. 3x^2 + 5x + 1.

This may be defined as poly P(3) i.e p is a 3rd order polynomial.

the coefficients may be set as double Coef[3] = {3, 5 , 1} or P.set(coef);

I know that you do not give help unless i have written a code. but i don't have a code as i do not know how to set the coefficients in that particular way. I know how to handle the operations on the polynomials such as addition and subtraction. However, i just don't know how to set the coefficients as i described above. Please show me how to do this. Please help me. Please.

Thanks in advance for your help.