Question: In Julia Code: Problem 1 ( b ) Implement a new constructor for the MyPoly type, which creates a polynomial from a given vector of

In Julia Code: Problem 1(b)
Implement a new constructor for the MyPoly type, which creates a polynomial from a given vector of roots
(and with leading term 1). That is, for a vector r with d roots, we define the degree d polynomial
p(x)=prodk=1d(x-rk)
To make sure we can still use the old syntax of initializing by the coefficients c, overload MyPoly with a
parameter named roots :
In Julia Code: Problem 1 ( b ) Implement a new

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 Accounting Questions!