Commit 874781a1 authored by Peter Bruin's avatar Peter Bruin

use Tian's trick also if the weight is 2

parent 0245b584
......@@ -37,8 +37,6 @@ init_weight_2(form) =
my(M, subspace, Gamma, n, l, Z, z, chi, H,
M2, subspace2, p, a_p);
[M, subspace] = form;
if(modular_symbols_weight(M) == 2,
return(form));
/*
Determine a suitable congruence subgroup using Tian's trick.
TODO: this is sometimes too optimistic, e.g. for a certain
......@@ -47,7 +45,7 @@ init_weight_2(form) =
Gamma = modular_symbols_group(M);
n = modular_group_level(Gamma);
l = characteristic(subspace);
Z = znstar(l * n, 1);
Z = znstar(if(modular_symbols_weight(M) == 2, n, l * n), 1);
z = znprimroot(l);
chi = character(Z, M, subspace, z);
H = charker(Z, chi);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment