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

Commit

Permalink
adapt doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Aug 28, 2015
1 parent 5618385 commit 51cfce6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/sage/rings/asymptotic/asymptotic_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,12 @@ def has_same_summands(self, other):
.. NOTE::
While for example ``O(x) == O(x)`` yields ``False``,
these expressions *do* have the same summands.
these expressions *do* have the same summands and this method
returns ``True``.
Also, this method uses the coercion model in order to
Moreover, this method uses the coercion model in order to
find a common parent for this asymptotic expression and
``other``. The method :meth:`_has_same_summands_` is
then used for the actual comparison.
``other``.
EXAMPLES::
Expand All @@ -437,12 +437,10 @@ def has_same_summands(self, other):
False
"""
from sage.structure.element import have_same_parent

if have_same_parent(self, other):
return self._has_same_summands_(other)

from sage.structure.element import get_coercion_model

return get_coercion_model().bin_op(self, other,
lambda self, other:
self._has_same_summands_(other))
Expand Down

0 comments on commit 51cfce6

Please sign in to comment.