| 1 | initial version |
In fact there is a "ready to use" procedure.
M = ModularSymbols(N,2) creates the space of weight 2 modular symbols for $\Gamma_0(N)$ (i.e. a basis of $H^1(X_0(N), \mathbb{Z})$).
We can create the element { $\alpha, \beta$ }, of M by putting x=M.modular_symbol([alpha, beta]).
The n-th Hecke operator is computed as follow: M.T(n)(x)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.