Create a deep copy of this polynomial. Returns: A new Polynomial with cloned monomials.
(self)
| 558 | ) |
| 559 | |
| 560 | def clone(self) -> Polynomial: |
| 561 | """Create a deep copy of this polynomial. |
| 562 | |
| 563 | Returns: |
| 564 | A new Polynomial with cloned monomials. |
| 565 | """ |
| 566 | return Polynomial(list({m.clone() for m in self.all_monomials()})) |
| 567 | |
| 568 | def variables(self) -> set: |
| 569 | """Get all variable indices present in this polynomial. |
no test coverage detected