Storing coefficients into an array
Basically I'm not sure how to correctly store this array. I have a lot of an assigned program completed but the only issue is I cant seem to figure out what the best approach (or any) to completing this portion. I would really appreciate any help given.
int coeff_exp;// declare coeff_exp as an array of int
coef_exp = // here you should store the coefficients and the exponents of the Polynomial as explained in the specification
// In the coeff_exp array you can store only the coefficients.
// The exponents can be considered as the array indexes.
// For example, the polynomial: 2x^5 - 3x^2 + 4 is represented in the following way by the coeff_exp array
// array content: 2 0 0 -3 0 4
// array index: (5) (4) (3) (2) (1) (0)