This repository has been archived by the owner on Apr 24, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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.
- Loading branch information