Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing some suggestions by ruff #38740

Merged
merged 3 commits into from
Oct 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix wrong merge
  • Loading branch information
fchapoton committed Oct 17, 2024
commit a5489f71dadcc82a1f42e06d4a3406cba07b3bd5
8 changes: 5 additions & 3 deletions src/sage/rings/polynomial/multi_polynomial_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
....: + (a0*b2 - a1*b3 + a2*b0 + a3*b1)^2 + (a0*b3 + a1*b2 - a2*b1 + a3*b0)^2)
True
"""
#*****************************************************************************
# ****************************************************************************
#
# Sage: Open Source Mathematical Software
#
Expand All @@ -54,7 +54,7 @@
# The full text of the GPL is available at:
#
# https://www.gnu.org/licenses/
#*****************************************************************************
# ****************************************************************************

import operator

Expand All @@ -74,6 +74,7 @@
from sage.rings.rational_field import QQ
from sage.rings.fraction_field import FractionField


class MPolynomial_element(MPolynomial):
r"""
Generic multivariate polynomial.
Expand Down Expand Up @@ -1929,7 +1930,7 @@ def _derivative(self, var=None):
if index == -1:
# var is not a generator; do term-by-term differentiation recursively
# var may be, for example, a generator of the base ring
d = {e: x._derivative(var))
d = {e: x._derivative(var)
for e, x in self.monomial_coefficients().items()}
d = polydict.PolyDict(d, check=False)
d.remove_zeros()
Expand Down Expand Up @@ -2495,6 +2496,7 @@ def reduce(self, I):
p -= plt
return r


###############################################################
# Useful for some geometry code.
###############################################################
Expand Down
Loading