Quote:but all I am receiving is errorWhat error message? With which input?I see a major flow in your code:Your code do not enforce the order of coeffs in the storage list. By enforcing the order of coeffs when you put in storage list, it will simplify later usage.One you know the coeffs are in order, adding the 2 polynomials is not really complicated.Take a sheet of paper and a pencil.
Note the coeffs as stored in lists and add the 2 lists in a third. How did you proceed?This is your algorithm; your code will have to do the same. When answering a question please:. Read the question carefully.
Understand that English isn't everyone's first language so be lenient of badspelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, oredit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it.Provide an answer or move on to the next question.Let's work to help developers, not make them feel stupid.
What is Polynomial?A polynomial p(x) is the expression in variable x which is in the form (ax n + bx n-1 +.