Ticket #2964: 9566.patch

File 9566.patch, 1.1 KB (added by bump, 10 years ago)
  • sage/combinat/root_system/weyl_group.py

    # HG changeset patch
    # User bump@match.stanford.edu
    # Date 1208664584 25200
    # Node ID 86a044b2526fe96b25c9121d90e481e5dacbab21
    # Parent  07b471a21bb91ef73d375fb698b40bd85973e08e
    Weyl group improvements
    
    diff -r 07b471a21bb9 -r 86a044b2526f sage/combinat/root_system/weyl_group.py
    a b class WeylGroup_gens(MatrixGroup_gens): 
    218218        """
    219219        Returns the long Weyl group element.
    220220        EXAMPLES:
    221            sage: for
     221          sage: [WeylGroup(t).long_element().length() for t in ['A',5],['B',3],['C',3],['D',4],['G',2],['F',4],['E',6]]
     222          [15, 9, 9, 12, 6, 24, 36]
    222223        """
    223224        type = self.ambient_lattice.ct
    224225        if type[0] == 'D' and type[1]%2 == 1:
    class WeylGroup_gens(MatrixGroup_gens): 
    253254            m = matrix(QQ, 3, l)
    254255        else:
    255256            m = diagonal_matrix([-1 for i in range(self.n)])
    256         print m
    257257        return self.__call__(m)
    258258
    259259    def cartan_type(self):