Ask Your Question

Revision history [back]

PARI/GP has very advanced functionalities to deal with modular forms (any weight, \Gamma_0(N) and any character), see the documentation at https://pari.math.u-bordeaux.fr/dochtml/html/Modular_forms.html

For evaluating Eisenstein series, you can do

sage: mf = pari.mfinit([1,4],3)   # Eisenstein series weight 4 for SL(2,Z)
sage: f = pari.mfbasis(mf)[0]     # dimension is one so this is the unique Eisenstein series
sage: pari.mfeval(mf, f, I)
0.00606567871778629

PARI/GP has very advanced functionalities to deal with modular forms (any weight, (\Gamma_0(N) , any weight and any character), see the documentation at https://pari.math.u-bordeaux.fr/dochtml/html/Modular_forms.html

For evaluating Eisenstein series, you can do

sage: mf = pari.mfinit([1,4],3)   # Eisenstein series weight 4 for SL(2,Z)
sage: f = pari.mfbasis(mf)[0]     # dimension is one so this is the unique Eisenstein series
sage: pari.mfeval(mf, f, I)
0.00606567871778629