-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added the Polynomial
divmod(x,y)
method.
Returns the quotient and the remainder when Polynomial `x` is divided by Polynomial `y`. - Added the Polynomial `self.coeff(e)` method. Returns the coefficient for power `x^e`. - Added the Polynomial `self.coeffs` method. Returns a 2D Array with the exponents and the coefficients as [[e_1, c_1], [e_2, c_2], ..., [e_k, c_k]] - Added the Polynomial `self.keys` method. Returns an Array with the exponents `e`. To get the coefficient for each power, use `self.coeff(e)`.
- Loading branch information
Showing
3 changed files
with
150 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters