Ejemplo n.º 1
0
        def _latex_(self):
            """
            EXAMPLES::

                sage: W = WeylGroup(['A',3], prefix="s", implementation="permutation")
                sage: [s1,s2,s3] = W.simple_reflections()
                sage: s1*s2
                s1*s2
                sage: W = WeylGroup(['A',3], implementation="permutation")
                sage: [s1,s2,s3] = W.simple_reflections()
                sage: s1*s2
                (1,10,2)(3,5,6)(4,8,7)(9,11,12)
            """
            if self.parent()._prefix is None:
                return RealReflectionGroupElement._repr_(self)
            redword = self.reduced_word()
            if not redword:
                return "1"
            else:
                return "".join("%s_{%d}"%(self.parent()._prefix, i) for i in redword)
Ejemplo n.º 2
0
        def _latex_(self):
            """
            EXAMPLES::

                sage: W = WeylGroup(['A',3], prefix="s", implementation="permutation")
                sage: [s1,s2,s3] = W.simple_reflections()
                sage: s1*s2
                s1*s2
                sage: W = WeylGroup(['A',3], implementation="permutation")
                sage: [s1,s2,s3] = W.simple_reflections()
                sage: s1*s2
                (1,10,2)(3,5,6)(4,8,7)(9,11,12)
            """
            if self.parent()._prefix is None:
                return RealReflectionGroupElement._repr_(self)
            redword = self.reduced_word()
            if not redword:
                return "1"
            else:
                return "".join("%s_{%d}"%(self.parent()._prefix, i) for i in redword)