Py-polynomial

Latest version: v0.6.2

Safety actively analyzes 619369 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.6.2

+ Add `Polynomial.calculate_horner`
+ Update CI python version checks: Remove 3.6, 3.7, add 3.8-3.11

0.6.1

(+) Implemented `__call__`

0.6.0

Implement definite integral (49)

0.5.2

Performance improvements (44 and 45)

0.5.1

* Made `FrozenPolynomial` and `ZeroPolynomial` hashable.

0.5.0

New things
* Polynomial division with a remainder with `divmod()`, e.g.
pycon
>>> p, r = divmod(Polynomial(1, 2, 3))
>>> p
Polynomial(1, 0)
>>> r
Polynomial(3)

* Floor division support (`//` and `//=`) (24)
* Modulo support (`%` and `%=`) (24)
* `**` and `pow()` support (32 )
* `<<`, `>>`, `<<=`, `>>=` support (31 )
* Method that calculates and returns the _n_-th derivative of the polynomial (`nth_derivative(n)`)
* Check if a term or a polynomial's terms all exist in another polynomial with `in` (27)
* Add `FrozenPolynomial` which is immutable (33)

Fixes things
* Fix `str()` output for terms with degrees with 10 to 19
* Fix 35 - handle degree changes and zero instance operations
* Fix derivative of zero (17 )
* Fix multiplying by zero (18 )
* Fix `Constant` to number casts (16)
* Fix default monomial value (15 )
* Fix bug when setting the leading term to zero (19)
* Fix `repr()` for Binomial and Trinomial (38)
* Simplified source code: module `polynomial` now divided into the following submodules: `core`, `binomial`, `trinomial`
* Optimize addition and multiplication performance (41)

Again, kudos to philippeitis for all the hard work!

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.