Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Updated inverse_of_unit in multi_polynomial_element
Browse files Browse the repository at this point in the history
Changed inverse_of_unit in multi_polynomial_element so
that it no longer changes the base ring.
  • Loading branch information
atowsley committed Jun 18, 2019
1 parent 716fb69 commit 5b2a99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/rings/polynomial/multi_polynomial_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ def inverse_of_unit(self):
if self.is_unit():
if len(k) != 1:
raise NotImplementedError
return ~d[k[0]]
return d[k[0]].inverse_of_unit()
raise ArithmeticError("is not a unit")

def is_homogeneous(self):
Expand Down

0 comments on commit 5b2a99e

Please sign in to comment.