Question: Suppose we have a Polynomial class that can be used to store Polynomial objects. Every Polynomial object has two vector member variables: one vector to

Suppose we have a Polynomial class that can be used to store Polynomial objects. Every Polynomial object has two vector member variables: one vector to store the coefficients, and one vector to store the exponents. For example, if poly -3x^4+5X^2+9x^6+2x^12+4x^7+8 Then poly.exp -[4,2,6,12,7,03 and poly.coef -(3,5,9,2,4,83 Notice that the exponents can be stored in ANY order in the exponent vector. For example, poly.exp[0]=4, and poly.exp[5]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!