Ejemplo n.º 1
0
 def positive_roots(self):
     """
     EXAMPLES::
     
         sage: RootSystem("A1xA2").ambient_space().positive_roots()
         [(1, -1, 0, 0, 0), (0, 0, 1, -1, 0), (0, 0, 1, 0, -1), (0, 0, 0, 1, -1)]
     """
     res = []
     for i, ambient_space in enumerate(self.ambient_spaces()):
         res.extend(self.inject_weights(i, v) for v in ambient_space.positive_roots())
     return res
Ejemplo n.º 2
0
    def positive_roots(self):
        """
        EXAMPLES::

            sage: RootSystem("A1xA2").ambient_space().positive_roots()
            [(1, -1, 0, 0, 0), (0, 0, 1, -1, 0), (0, 0, 1, 0, -1), (0, 0, 0, 1, -1)]
        """
        res = []
        for i, ambient_space in enumerate(self.ambient_spaces()):
            res.extend(self.inject_weights(i, v) for v in ambient_space.positive_roots())
        return res