I guess the answer is yes, but may we assume the proper input is given during initialization? (that is, the proper input differs from one implementation to another)
Date: 27 Dec 2014 22:34
Number of posts: 5
RSS: New posts
Are you concerned with the polynomial_sparse input?
I've already mentioned that we will initialize a sparse polynomial using a list (as in part A), but when you initialize a sparse polynomial from within your methods you may want to use a proper compact initialization.
I understand, but will you try to initializing a sparse polynomial using my unique method, or will you stick to using a regular list as input like with polynomial? (Regardless of the method i actually use to represent the polynomial within my code) To my understanding I should support two types of input (regular list and a more compact one, adjusted to my custom-made code), am I right? Can I assume this compact input is in accordance with my code?
We will only initialize sparse polynomials using a regular list.
and: Yes, you should definitely assume that the compact input is in accordance with your code. You should choose how to represent a sparse polynomial and then write your code according to this choice.