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

Commit

Permalink
small changes in multiplication code
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Aug 27, 2015
1 parent 38075d0 commit 6d1f0c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/sage/rings/asymptotic/asymptotic_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,8 @@ def _mul_term_(self, term):
sage: expr._mul_term_(t)
O(x^3)
"""
return self.parent()([term * elem for elem in self.summands.elements()])
return self.parent()([term * elem for elem in self.summands.elements()],
convert=False)


def _mul_(self, other):
Expand Down Expand Up @@ -801,8 +802,9 @@ def _mul_(self, other):
of the underlying poset shall be implemented at a later
point.
"""
return self.parent()(sum(self._mul_term_(term_other) for
term_other in other.summands.elements()))
return sum(self._mul_term_(term_other) for
term_other in other.summands.elements())



def _div_(self, other):
Expand Down

0 comments on commit 6d1f0c3

Please sign in to comment.