Question: using Coefficient = double; class UnivariatePolynomial { public: UnivariatePolynomial ( ) = default; / / constructor from an initializer list of coefficients UnivariatePolynomial ( std::vector
using Coefficient double; class UnivariatePolynomial public: UnivariatePolynomial default; constructor from an initializer list of coefficients UnivariatePolynomialstd::vector; the degree of the polynomial; for simplicity, we will let the degree of the zero polynomial be int degree const; change the symbol for the polynomial such as y or x void setSymbolchar c; get the symbol char symbol const;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
