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

Commit

Permalink
Trac #19073: Reword and add doctest for _pushout_
Browse files Browse the repository at this point in the history
  • Loading branch information
cheuberg committed Oct 8, 2015
1 parent 2a80346 commit 1583ffc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/sage/rings/asymptotic/growth_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -1498,9 +1498,8 @@ def _pushout_(self, other):
sage: cm.common_parent(A, B)
Growth Group QQ^x * y^ZZ
Single factored growth groups of the same variable cannot be
combined automatically, since there is no order relation (meaning
which one is larger than the other) between the two factors::
In general, growth groups of the same variable cannot be
combined automatically, since there is no order relation between the two factors::
sage: C = GrowthGroup('x^QQ')
sage: cm.common_parent(A, C)
Expand All @@ -1509,6 +1508,14 @@ def _pushout_(self, other):
TypeError: no common canonical parent for objects with parents:
'Growth Group QQ^x' and 'Growth Group x^QQ'
However, combining is possible if the factors with the same variable
overlap::
sage: cm.common_parent(GrowthGroup('x^ZZ*log(x)^ZZ'), GrowthGroup('exp(x)^ZZ*x^ZZ'))
Growth Group exp(x)^ZZ * x^ZZ * log(x)^ZZ
sage: cm.common_parent(GrowthGroup('x^ZZ*log(x)^ZZ'), GrowthGroup('y^ZZ*x^ZZ'))
Growth Group x^ZZ * log(x)^ZZ * y^ZZ
::
sage: cm.common_parent(GrowthGroup('x^ZZ'), GrowthGroup('y^ZZ'))
Expand Down

0 comments on commit 1583ffc

Please sign in to comment.