Skip to content

Commit aaba3cc

Browse files
added specialization method
1 parent 8e488ac commit aaba3cc

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/sage/dynamics/arithmetic_dynamics/dynamical_semigroup.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -657,17 +657,24 @@ def specialization(self, assignments):
657657
658658
sage: R.<r> = QQ[]
659659
sage: P.<x,y> = ProjectiveSpace(R, 1)
660-
sage: f = DynamicalSystem([t * x, y], P)
661-
sage: g = DynamicalSystem([x, t * y], P)
660+
sage: f = DynamicalSystem([r * x, y], P)
661+
sage: g = DynamicalSystem([x, r * y], P)
662662
sage: d = DynamicalSemigroup((f, g))
663-
sage: d.specialization({t:2})
663+
sage: d.specialization({r:2})
664+
Dynamical semigroup over Projective Space of dimension 1 over Rational Field defined by 2 dynamical systems:
665+
Dynamical System of Projective Space of dimension 1 over Rational Field
666+
Defn: Defined on coordinates by sending (x : y) to
667+
(2*x : y)
668+
Dynamical System of Projective Space of dimension 1 over Rational Field
669+
Defn: Defined on coordinates by sending (x : y) to
670+
(x : 2*y)
664671
"""
665672
specialized_systems = []
666673
for ds in self.defining_systems():
667674
specialized_systems.append(ds.specialization(assignments))
668675
return DynamicalSemigroup(specialized_systems)
669676

670-
def __mul__(self, n):
677+
def __mul__(self, other_dynamical_semigroup):
671678
r"""
672679
Return a new :class:`DynamicalSemigroup` that is the result of multiplying
673680
this dynamical semigroup with another dynamical semigroup of the same type

0 commit comments

Comments
 (0)