Gonzalo, Jon and I spend a couple hours on the problem and now:
sage [sage-3.1.2]> ./sage
----------------------------------------------------------------------
| SAGE Version 3.1.2, Release Date: 2008-09-19 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
Loading SAGE library. Current Mercurial branch is: qfdevel
sage: Q = QuadraticForm(ZZ, 3, [1,2,3,4,5,6]); Q
Quadratic form in 3 variables over Integer Ring with coefficients:
[ 1 2 3 ]
[ * 4 5 ]
[ * * 6 ]
sage: Q.level()
164
sage: Q.theta_series()
1 + 2*q + 2*q^3 + 10*q^4 + 4*q^5 + 4*q^6 + 8*q^7 + 6*q^9 + 4*q^10 +
8*q^11 + 10*q^12 + 4*q^13 + 6*q^14 + 10*q^15 + 14*q^16 + 4*q^17 +
8*q^18 + 10*q^19 + 8*q^20 + 8*q^21 + 6*q^22 + 12*q^23 + 12*q^24 +
10*q^25 + 8*q^26 + 6*q^27 + 16*q^28 + 4*q^29 + 6*q^30 + 24*q^31 +
8*q^32
This is Jon's 2.8.14 upgraded to 3.1.2 and some small patches that are
not yet in upstream.
Gonzalo and I went through the diff from Jon's 2.8.14 and a vanilla
2.8.14 and after going through all the 730 lines of diff outside the
quadratic_forms directory we concluded that all those diffs have been
either merged upstream or do no longer apply. Gonzalo is putting all
that info on the #4470 ticket.
Now we are looking at the code inside the quadratic_forms directory
and there is some work to do cleaning things up. Unfortunately Jon's
build on sage.math is missing on Cython file for db support, so some
of the functionality has to wait until Jon gets home from SD 11 and
fishes it out of his backup. Until then I can offer a sage.math only
binary at
http://sage.math.washington.edu/home/mabshoff/hanke-qf-merge/sage-3.1.2-sage.math-qf-raw-x86_64-Linux.tar.gz
The plan now is to take everything but the table code and mold it into
one monolithic patch so it can be reviewed.
Watch this space for news.
Cheers,
Michael