You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2020. It is now read-only.
* Changed the implementation of exercise 3 in python essentials to make it
faster, more pythonic and use techniques explained in the text
* Corrected a bug in Exercise 1 of the numpy chapter
The np.poly1d() method takes the coefficients in decreasing powers
so they need to be flipped (np.flip()) before making the call
Improved the test case as this error wasn't detected when using
identical coefficients.
Moved the tested value to a variable rather than hard coded
Made the code more pythonic using np.ones_like() rather than
np.empty(len(coef))
* typo coeffs -> coef
* Revert "Changed the implementation of exercise 3 in python essentials to make it"
This reverts commit a8c4795.
0 commit comments