Processing math: 100%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Theta series of even lattice

I am new to sage and trying to figure out how to calculate the series expansion of the theta function for an even lattice L, i.e. ΘL(q)=xLqx,x/2

I tried the following code for the A2 lattice, but I doesn't really do what its supposed to do

Q=QuadraticForm(QQ,2,[2,-1,2]); Q
Q.theta_series(20)

I found the following code on OEIS, which gives the correct result:

ModularForms( Gamma1(3), 1, prec=81).0
click to hide/show revision 2
retagged

updated 7 years ago

FrédéricC gravatar image

Theta series of even lattice

I am new to sage and trying to figure out how to calculate the series expansion of the theta function for an even lattice L, i.e. ΘL(q)=xLqx,x/2

I tried the following code for the A2 lattice, but I doesn't really do what its supposed to do

Q=QuadraticForm(QQ,2,[2,-1,2]); Q
Q.theta_series(20)

I found the following code on OEIS, which gives the correct result:

ModularForms( Gamma1(3), 1, prec=81).0