Question: In PYTHON Please: You are to provide the methods iszero ( ) , eval ( a ) , degree ( ) , and lowest _

In PYTHON Please:
You are to provide the methods iszero(), eval(a), degree(), and lowest_term(). The iszero() method returns a Boolean that reports whether the polynomial is the zero polynomial. The eval(a) method returns the evaluation of the polynomial at x=a. The degree() method returns the degree of the polynomial; for simplicity, return 0 for the zero polynomial. (Strictly speaking, the degree of the zero polynomial is undefined.). The lowest_term() method returns the exponent of the lowest non-zero term.
You are to provide the method horners() that will return a string of the Horner's rule representation of the polynomial. The Horner's rule representation of the polynomial anxn+an-1xn-1+dots.+a1x+a0 is the string ". Zero terms and a coefficient an of 1 must not be included in the return string. For example, for the polynomial -x4+3x2+5, the method should return the string "x(x(x(-x)+3))+5".Polynomials and Linked lists
Polynomial class
You are to implement a Polynomial class that supports an integer polynomial datatype. Quite often, such a datatype can be implemented using a list or an array. However, our Polynomials will be sparse, meaning that a lot of terms will be zero. In such a case, only the nonzero terms should be stored in the data structure. For this assignment, you must use a linked list to store the nonzero terms of the polynomial.
 In PYTHON Please: You are to provide the methods iszero(), eval(a),

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