Ticket #6964: trac_6964-part3.patch

File trac_6964-part3.patch, 993 bytes (added by was, 4 years ago)
  • sage/modular/modsym/subspace.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1253423979 25200
    # Node ID 43d3d87939158609b8fea71bd463a910f38378e9
    # Parent  3fbb6450cf15097808d57a643ec3826e19eba8c0
    trac 6964 -- implement computation of Dirichlet character of irreducible cuspidal modular symbols space
    
    diff -r 3fbb6450cf15 -r 43d3d8793915 sage/modular/modsym/subspace.py
    a b  
    493493        EXAMPLES:: 
    494494 
    495495            sage: f = ModularSymbols(Gamma1(13),2,sign=1).cuspidal_subspace().decomposition()[0] 
    496             sage: a = f.diamond_bracket_operator(2).matrix(); a 
    497             [ 1  1] 
    498             [-1  0] 
    499             sage: a^2 
    500             [ 0  1] 
    501             [-1 -1] 
     496            sage: a = f.diamond_bracket_operator(2).matrix() 
     497            sage: a.charpoly() 
     498            x^2 - x + 1 
    502499            sage: a^12 
    503500            [1 0] 
    504501            [0 1]