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

Commit

Permalink
Added test to verify division works
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziewest committed Jun 29, 2018
1 parent 010ba97 commit 989c4fc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sage/rings/polynomial/multi_polynomial_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,15 @@ def _div_(self, right):
sage: S.<x,y>=PolynomialRing(R)
sage: x/S(2)
1/2*x
Ensure that :trac:`17638` is fixed.::
sage: R.<x,y> = PolynomialRing(QQ,order = "neglex")
sage: f = 1+y
sage: g = 1+x
sage: h = f/g
sage: print(h*g == f)
True
"""
if right in self.base_ring():
inv = self.base_ring().one()/self.base_ring()(right)
Expand Down

0 comments on commit 989c4fc

Please sign in to comment.