[sage-support] list of inequivalent cusps for the principal congruence subgroup Gamma(N)

2010-12-21 Thread rje
In ticket 10506, John Cremona wrote the following in reference to Gamma(n): "Note that the next job is to add a method to return a set of inequivalent cusps. The default implementation is stupidly slow (as proved by the fact that the old default for ncusps() was to find all the cusps and count them

[sage-support] Re: counting cusps for the principal congruence subgroup

2010-12-21 Thread rje
Your product formula is a good idea. It's faster than my summation formula. On Dec 21, 3:40 am, John Cremona wrote: > On Dec 21, 1:38 am, rje wrote: > > > Thanks for the helpful response.  The appropriate code  for computing > > Gamma(n).ncusps() is > >

[sage-support] Re: counting cusps for the principal congruence subgroup

2010-12-20 Thread rje
turn ZZ(sum([phi(d)*phi(n/d)/ZZ(2) for d in n.divisors()])) > > Why don't you open a ticket to improve this by implementing a suitabel > formula for the principal congruence subgroups? > > John Cremona > > On Dec 19, 10:51 pm, rje wrote: > > > > > Sage is slo

[sage-support] counting cusps for the principal congruence subgroup

2010-12-19 Thread rje
Sage is slow in computing the number of cusps for Gamma(n). Look, for example, at the disparity in times below. sage: time Gamma(5).ncusps() CPU times: user 52.02 s, sys: 0.24 s, total: 52.26 s Wall time: 52.29 s 12 sage: time Gamma0(5).ncusps() CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s

[sage-support] Re: numerical eigenforms

2009-07-23 Thread rje
s Explorer. So what are these animals? I leave with the following challenge: Use Sage to determine (algebraically, not just numerically) the first ten coefficients c(p) of the "eigenform" corresponding to item 1 in the list.rje p.s. Just to make sure there is at least one thing useful

[sage-support] numerical eigenforms

2009-07-15 Thread rje
What is going on here? Does this only work for even weights? rje sage: n=numerical_eigenforms(15,3);n.ap(2) [] --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support

[sage-support] Re: Sage computes Jacobi sums incorrectly

2009-06-24 Thread rje
;s because each term of the defining sum is a Gaussian integer. For example: sage: parent(Z(3)) Cyclotomic Field of order 4 and degree 2 rje --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, se

[sage-support] Sage computes Jacobi sums incorrectly

2009-06-24 Thread rje
) 0 0 #The 0 values above are incorrect values of J(Y, Z). Remark: Since unlike Gauss sums mod p, Jacobi sums mod p never involve p-th roots of unity, the following is also a bit curious: sage: parent(Z.jacobi_sum(Z)) Cyclotomic Field of order 20 and deg

[sage-support] parallelization

2009-06-23 Thread rje
hardware ? sage: G=DirichletGroup(18900, GF(193));X=G.list();Y=X[0]; sage: M=ModularSymbols(Y,4,sign=1); sage: A=(M.T(19)-162).kernel() rje --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send

[sage-support] checking for inequality between characters

2009-05-27 Thread rje
sage: X=DirichletGroup(6).list(); sage: X[0] [1, 1] sage: X[0]<>[1, 1] True -- Why is this True, and what's the corrected syntax? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To

[sage-support] checking for inequality between characters

2009-05-27 Thread rje
sage: X=DirichletGroup(6).list(); sage: X[0] [1, 1] sage: X[0]<>[1, 1] True -- Why is this True, and what's the corrected syntax? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Faster to search for eigenforms reduced mod p than to search for eigenforms themselves?

2009-05-22 Thread rje
stion is this: If instead of searching as above for cases where c(13) = 14, all I need to find is a case where c(13) = 0 mod 7, is there a *faster* sage implementation, e.g., using a base field GF(7)? Thanks. rje --~--~-~--~~~---~--~~ To post to this group, send ema

[sage-support] q_eigenform command produces "list index out of range" error

2009-05-21 Thread rje
Transcript below. Ironically, no error is produced by the related command sage: time f=D[6].q_eigenform(7,'a') rje * rev...@sobol