Use a dict to hold polynomial coefficients; mul.’
Extend the class in Exercise 7.28 with a __mul__ method. First, study the algorithm in Chapter 7.3.7 for the __mul__ method when the coefficients are stored in lists. Then modify the algorithm to work with dictionaries. Implement the algorithm and exemplify it by multiplying x − 3x100and x20− x + 4x100. Name of program file: Polynomial_dict2.py.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here