Last login: Fri Apr 21 13:12:29 on console Welcome to Darwin! sha:~ was$ cd d/ sha:~/d was$ ls MANIFEST.in README install setup.py spkg-install PKG-INFO build sage spkg-dist sha:~/d was$ cd .. sha:~ was$ cd sage sha:~/sage was$ ls current sage-1.2.0 sha:~/sage was$ cd sage-1.2.0/ sha:~/sage/sage-1.2.0 was$ ls BUGS.txt data example.sage l.png sage-python COPYING.txt devel examples local spkg README.txt dist install.log makefile tmp changelog.txt doc ipythonrc sage todo.txt sha:~/sage/sage-1.2.0 was$ cd devel sha:~/sage/sage-1.2.0/devel was$ ls doc old sage-1.2.3 doc-1.2.3 sage sage_user-0.1 sha:~/sage/sage-1.2.0/devel was$ cd old sha:~/sage/sage-1.2.0/devel/old was$ ls doc-1.2.0 doc-1.2.1 sage-1.2.0 sage-1.2.1 sage-darcs sha:~/sage/sage-1.2.0/devel/old was$ mv sage-darcs .. sha:~/sage/sage-1.2.0/devel/old was$ cd .. sha:~/sage/sage-1.2.0/devel was$ ls doc old sage-1.2.3 sage_user-0.1 doc-1.2.3 sage sage-darcs sha:~/sage/sage-1.2.0/devel was$ rm sage sha:~/sage/sage-1.2.0/devel was$ ln -s sage-darcs sage sha:~/sage/sage-1.2.0/devel was$ cd sage sha:~/sage/sage-1.2.0/devel/sage was$ ls MANIFEST.in _darcs changes sage spkg-install PKG-INFO boring doc setup.py README build install spkg-dist sha:~/sage/sage-1.2.0/devel/sage was$ darcs pull Pulling from "http://modular.math.washington.edu/sage/dist/src/sage-darcs"... Thu Apr 20 11:49:04 PDT 2006 William Stein * fixed bug in morphism comparison Shall I pull this patch? (1/20) [ynWvpxqadjk], or ? for help: y Thu Apr 20 11:49:19 PDT 2006 William Stein * added asin, atan, acos to functional.py Shall I pull this patch? (2/20) [ynWvpxqadjk], or ? for help: y Thu Apr 20 11:49:32 PDT 2006 William Stein * small plot improvements Shall I pull this patch? (3/20) [ynWvpxqadjk], or ? for help: y Thu Apr 20 12:13:19 PDT 2006 William Stein * fixed output mistake in asin example. Shall I pull this patch? (4/20) [ynWvpxqadjk], or ? for help: y Thu Apr 20 12:13:37 PDT 2006 William Stein * fixed bug in modular symbols introduced by last modsym patch. Shall I pull this patch? (5/20) [ynWvpxqadjk], or ? for help: y Thu Apr 20 13:09:00 PDT 2006 William Stein * update galois_group to work with new version of kash Shall I pull this patch? (6/20) [ynWvpxqadjk], or ? for help: y Thu Apr 20 13:09:32 PDT 2006 William Stein tagged sage-1.2.3 Shall I pull this patch? (7/20) [ynWvpxqadjk], or ? for help: y Thu Apr 20 13:16:36 PDT 2006 William Stein * tiny changes to docs so they latex correctly Shall I pull this patch? (8/20) [ynWvpxqadjk], or ? for help: y Thu Apr 20 20:30:10 PDT 2006 William Stein * new Groebner Fan functionality; plus lots along the way. * groebner_fan() function for multivariate-ideals; provides very nice access to most of the functionality of Groebner Fan, which is now included by default with SAGE. * Changed so that multi-variate polynomials rings get numered variables called x0,x1,x2,x3 (or whatever) instead of x_0,x_1,x_2,x_3. This is because (1) there were some problems with _ variables and Singular, and (2) in ASCII the underscores do not look good. Note that latex typesetting still correctly includes _'s. This change required changing hundreds of examples all over the source tree. * Numerous little improvements to multivariate polynomials, etc., while making the Groebner Fan interface. Shall I pull this patch? (9/20) [ynWvpxqadjk], or ? for help: y y Thu Apr 20 20:30:55 PDT 2006 William Stein tagged sage-1.2.3 Shall I pull this patch? (10/20) [ynWvpxqadjk], or ? for help: y Thu Apr 20 20:45:48 PDT 2006 William Stein tagged sage-1.2.3 Shall I pull this patch? (11/20) [ynWvpxqadjk], or ? for help: y Thu Apr 20 20:54:37 PDT 2006 William Stein tagged sage-1.2.3 Shall I pull this patch? (12/20) [ynWvpxqadjk], or ? for help: Thu Apr 20 23:50:21 PDT 2006 William Stein * added __truediv__ to element.pyx for future-proofing. Shall I pull this patch? (13/20) [ynWvpxqadjk], or ? for help: y Thu Apr 20 23:50:49 PDT 2006 William Stein * gfan improve docs Shall I pull this patch? (14/20) [ynWvpxqadjk], or ? for help: y Fri Apr 21 10:37:51 PDT 2006 William Stein * improvements to srange and xsrange Shall I pull this patch? (15/20) [ynWvpxqadjk], or ? for help: y Fri Apr 21 11:23:22 PDT 2006 William Stein * added a "restart" message to upgrade() command. Shall I pull this patch? (16/20) [ynWvpxqadjk], or ? for help: y Fri Apr 21 11:25:04 PDT 2006 William Stein * pipe gqview error to /dev/null in plot.py Shall I pull this patch? (17/20) [ynWvpxqadjk], or ? for help: y Fri Apr 21 12:36:35 PDT 2006 William Stein * improve heilbronn.pyx comment Shall I pull this patch? (18/20) [ynWvpxqadjk], or ? for help: y Fri Apr 21 12:36:48 PDT 2006 William Stein * change to use Integer in an integer_mod_ring.py function. Shall I pull this patch? (19/20) [ynWvpxqadjk], or ? for help: y Fri Apr 21 12:50:11 PDT 2006 William Stein * improved __truediv__ in element.pyx Shall I pull this patch? (20/20) [ynWvpxqadjk], or ? for help: y Finished pulling and applying. sha:~/sage/sage-1.2.0/devel/sage was$ cd sha:~ was$ sage -br sage/ext/element.pyx --> /Users/was/s/local//lib/python2.4/site-packages//sage/ext/element.pyx pyrexc sage/ext/element.pyx sage/ext/gens.pyx --> /Users/was/s/local//lib/python2.4/site-packages//sage/ext/gens.pyx pyrexc sage/ext/gens.pyx sage/ext/heilbronn.pyx --> /Users/was/s/local//lib/python2.4/site-packages//sage/ext/heilbronn.pyx pyrexc sage/ext/heilbronn.pyx running install running build running build_py copying sage/all.py -> build/lib.darwin-8.6.1-i386-2.4/sage copying sage/algebras/free_algebra.py -> build/lib.darwin-8.6.1-i386-2.4/sage/algebras copying sage/groups/permgroup.py -> build/lib.darwin-8.6.1-i386-2.4/sage/groups copying sage/interfaces/gap.py -> build/lib.darwin-8.6.1-i386-2.4/sage/interfaces copying sage/interfaces/gfan.py -> build/lib.darwin-8.6.1-i386-2.4/sage/interfaces copying sage/interfaces/singular.py -> build/lib.darwin-8.6.1-i386-2.4/sage/interfaces copying sage/matrix/matrix.py -> build/lib.darwin-8.6.1-i386-2.4/sage/matrix copying sage/misc/defaults.py -> build/lib.darwin-8.6.1-i386-2.4/sage/misc copying sage/misc/functional.py -> build/lib.darwin-8.6.1-i386-2.4/sage/misc copying sage/misc/misc.py -> build/lib.darwin-8.6.1-i386-2.4/sage/misc copying sage/misc/sagedoc.py -> build/lib.darwin-8.6.1-i386-2.4/sage/misc copying sage/modules/free_module.py -> build/lib.darwin-8.6.1-i386-2.4/sage/modules copying sage/modules/free_module_element.py -> build/lib.darwin-8.6.1-i386-2.4/sage/modules copying sage/modular/dirichlet.py -> build/lib.darwin-8.6.1-i386-2.4/sage/modular copying sage/modular/modsym/ambient.py -> build/lib.darwin-8.6.1-i386-2.4/sage/modular/modsym copying sage/modular/modsym/modsym.py -> build/lib.darwin-8.6.1-i386-2.4/sage/modular/modsym copying sage/modular/modsym/relation_matrix.py -> build/lib.darwin-8.6.1-i386-2.4/sage/modular/modsym copying sage/modular/modsym/space.py -> build/lib.darwin-8.6.1-i386-2.4/sage/modular/modsym copying sage/monoids/free_abelian_monoid.py -> build/lib.darwin-8.6.1-i386-2.4/sage/monoids copying sage/monoids/free_monoid.py -> build/lib.darwin-8.6.1-i386-2.4/sage/monoids copying sage/monoids/free_monoid_element.py -> build/lib.darwin-8.6.1-i386-2.4/sage/monoids copying sage/plot/all.py -> build/lib.darwin-8.6.1-i386-2.4/sage/plot copying sage/plot/plot.py -> build/lib.darwin-8.6.1-i386-2.4/sage/plot copying sage/rings/finite_field.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/fraction_field.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/fraction_field_element.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/groebner_fan.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/integer_mod_ring.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/morphism.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/multi_polynomial_element.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/multi_polynomial_ideal.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/multi_polynomial_ring.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/polynomial_element.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/polynomial_ring.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/rational_field.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings copying sage/rings/number_field/number_field.py -> build/lib.darwin-8.6.1-i386-2.4/sage/rings/number_field copying sage/schemes/generic/affine_space.py -> build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic copying sage/schemes/generic/algebraic_scheme.py -> build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic copying sage/schemes/generic/divisor.py -> build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic copying sage/schemes/generic/morphism.py -> build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic copying sage/schemes/generic/projective_space.py -> build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic copying sage/schemes/generic/spec.py -> build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic copying sage/schemes/plane_curves/affine_curve.py -> build/lib.darwin-8.6.1-i386-2.4/sage/schemes/plane_curves running build_ext building 'sage.ext.element' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/Users/was/s/local//include -I/Users/was/s/local//include/python2.4 -I/Users/was/s/local/include/python2.4 -c sage/ext/element.c -o build/temp.darwin-8.6.1-i386-2.4/sage/ext/element.o -w gcc -L/Users/was/sage/sage-1.2.0/local/lib -bundle -undefined dynamic_lookup build/temp.darwin-8.6.1-i386-2.4/sage/ext/element.o build/temp.darwin-8.6.1-i386-2.4/sage/ext/interrupt.o -o build/lib.darwin-8.6.1-i386-2.4/sage/ext/element.so -L/Users/was/s/local//lib building 'sage.ext.gens' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/Users/was/s/local//include -I/Users/was/s/local//include/python2.4 -I/Users/was/s/local/include/python2.4 -c sage/ext/gens.c -o build/temp.darwin-8.6.1-i386-2.4/sage/ext/gens.o -w gcc -L/Users/was/sage/sage-1.2.0/local/lib -bundle -undefined dynamic_lookup build/temp.darwin-8.6.1-i386-2.4/sage/ext/gens.o build/temp.darwin-8.6.1-i386-2.4/sage/ext/interrupt.o -o build/lib.darwin-8.6.1-i386-2.4/sage/ext/gens.so -L/Users/was/s/local//lib building 'sage.ext.heilbronn' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/Users/was/s/local//include -I/Users/was/s/local//include/python2.4 -I/Users/was/s/local/include/python2.4 -c sage/ext/heilbronn.c -o build/temp.darwin-8.6.1-i386-2.4/sage/ext/heilbronn.o -w gcc -L/Users/was/sage/sage-1.2.0/local/lib -bundle -undefined dynamic_lookup build/temp.darwin-8.6.1-i386-2.4/sage/ext/heilbronn.o build/temp.darwin-8.6.1-i386-2.4/sage/ext/p1list.o build/temp.darwin-8.6.1-i386-2.4/sage/ext/arith.o build/temp.darwin-8.6.1-i386-2.4/sage/ext/interrupt.o -lgmp -lm -o build/lib.darwin-8.6.1-i386-2.4/sage/ext/heilbronn.so -L/Users/was/s/local//lib running install_lib copying build/lib.darwin-8.6.1-i386-2.4/sage/algebras/free_algebra.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/algebras copying build/lib.darwin-8.6.1-i386-2.4/sage/all.py -> /Users/was/s/local/lib/python2.4/site-packages/sage copying build/lib.darwin-8.6.1-i386-2.4/sage/ext/element.so -> /Users/was/s/local/lib/python2.4/site-packages/sage/ext copying build/lib.darwin-8.6.1-i386-2.4/sage/ext/gens.so -> /Users/was/s/local/lib/python2.4/site-packages/sage/ext copying build/lib.darwin-8.6.1-i386-2.4/sage/ext/heilbronn.so -> /Users/was/s/local/lib/python2.4/site-packages/sage/ext copying build/lib.darwin-8.6.1-i386-2.4/sage/groups/permgroup.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/groups copying build/lib.darwin-8.6.1-i386-2.4/sage/interfaces/gap.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/interfaces copying build/lib.darwin-8.6.1-i386-2.4/sage/interfaces/gfan.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/interfaces copying build/lib.darwin-8.6.1-i386-2.4/sage/interfaces/singular.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/interfaces copying build/lib.darwin-8.6.1-i386-2.4/sage/matrix/matrix.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/matrix copying build/lib.darwin-8.6.1-i386-2.4/sage/misc/defaults.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/misc copying build/lib.darwin-8.6.1-i386-2.4/sage/misc/functional.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/misc copying build/lib.darwin-8.6.1-i386-2.4/sage/misc/misc.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/misc copying build/lib.darwin-8.6.1-i386-2.4/sage/misc/sagedoc.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/misc copying build/lib.darwin-8.6.1-i386-2.4/sage/modular/dirichlet.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/modular copying build/lib.darwin-8.6.1-i386-2.4/sage/modular/modsym/ambient.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym copying build/lib.darwin-8.6.1-i386-2.4/sage/modular/modsym/modsym.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym copying build/lib.darwin-8.6.1-i386-2.4/sage/modular/modsym/relation_matrix.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym copying build/lib.darwin-8.6.1-i386-2.4/sage/modular/modsym/space.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym copying build/lib.darwin-8.6.1-i386-2.4/sage/modules/free_module.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/modules copying build/lib.darwin-8.6.1-i386-2.4/sage/modules/free_module_element.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/modules copying build/lib.darwin-8.6.1-i386-2.4/sage/monoids/free_abelian_monoid.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/monoids copying build/lib.darwin-8.6.1-i386-2.4/sage/monoids/free_monoid.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/monoids copying build/lib.darwin-8.6.1-i386-2.4/sage/monoids/free_monoid_element.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/monoids copying build/lib.darwin-8.6.1-i386-2.4/sage/plot/all.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/plot copying build/lib.darwin-8.6.1-i386-2.4/sage/plot/plot.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/plot copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/finite_field.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/fraction_field.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/fraction_field_element.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/groebner_fan.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/integer_mod_ring.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/morphism.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/multi_polynomial_element.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/multi_polynomial_ideal.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/multi_polynomial_ring.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/number_field/number_field.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings/number_field copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/polynomial_element.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/polynomial_ring.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/rings/rational_field.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/rings copying build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic/affine_space.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic copying build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic/algebraic_scheme.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic copying build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic/divisor.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic copying build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic/morphism.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic copying build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic/projective_space.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic copying build/lib.darwin-8.6.1-i386-2.4/sage/schemes/generic/spec.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic copying build/lib.darwin-8.6.1-i386-2.4/sage/schemes/plane_curves/affine_curve.py -> /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/plane_curves byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/algebras/free_algebra.py to free_algebra.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/all.py to all.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/groups/permgroup.py to permgroup.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/interfaces/gap.py to gap.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/interfaces/gfan.py to gfan.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/interfaces/singular.py to singular.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/matrix/matrix.py to matrix.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/misc/defaults.py to defaults.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/misc/functional.py to functional.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/misc/misc.py to misc.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/misc/sagedoc.py to sagedoc.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/modular/dirichlet.py to dirichlet.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/ambient.py to ambient.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/modsym.py to modsym.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/relation_matrix.py to relation_matrix.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/space.py to space.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/modules/free_module.py to free_module.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/modules/free_module_element.py to free_module_element.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/monoids/free_abelian_monoid.py to free_abelian_monoid.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/monoids/free_monoid.py to free_monoid.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/monoids/free_monoid_element.py to free_monoid_element.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/plot/all.py to all.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/plot/plot.py to plot.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/finite_field.py to finite_field.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/fraction_field.py to fraction_field.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/fraction_field_element.py to fraction_field_element.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/groebner_fan.py to groebner_fan.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/integer_mod_ring.py to integer_mod_ring.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/morphism.py to morphism.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/multi_polynomial_element.py to multi_polynomial_element.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/multi_polynomial_ideal.py to multi_polynomial_ideal.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/multi_polynomial_ring.py to multi_polynomial_ring.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/number_field/number_field.py to number_field.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/polynomial_element.py to polynomial_element.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/polynomial_ring.py to polynomial_ring.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/rings/rational_field.py to rational_field.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic/affine_space.py to affine_space.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic/algebraic_scheme.py to algebraic_scheme.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic/divisor.py to divisor.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic/morphism.py to morphism.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic/projective_space.py to projective_space.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/generic/spec.py to spec.pyc byte-compiling /Users/was/s/local/lib/python2.4/site-packages/sage/schemes/plane_curves/affine_curve.py to affine_curve.pyc real 0m19.602s user 0m12.559s sys 0m1.512s -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- sage: int(2)/3 _1 = 2/3 sage: int(2)/int(3) _2 = 0 sage: Exiting SAGE (CPU time 0m0.01s, Wall time 0m8.02s). sha:~ was$ sha:~ was$ ls Desktop Music bin s trash Documents Pictures d sage F.sobj Public install share Library Sites local tmp Movies a.txt~ parallels todo.txt sha:~ was$ vi s/local/bin/sage-sage sha:~ was$ vi s/local/bin/sage-ipython sha:~ was$ sage -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- sage: int(2)/int(3) _1 = 0.66666666666666663 sage: 2/3 _2 = 2/3 sage: sage: sage: sage: int(2)/int(3) _3 = 0.66666666666666663 sage: Exiting SAGE (CPU time 0m0.02s, Wall time 0m7.16s). sha:~ was$ sage -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- sage: M = ModularSymbols(39) sage: M.T(2) _2 = Hecke operator T_2 on Full Modular Symbols space for Gamma_0(39) of weight 2 with sign 0 and dimension 9 over Rational Field sage: M.T(2).matrix() _3 = [ 3 0 -1 0 0 1 1 -1 0] [ 0 0 2 0 -1 1 0 1 -1] [ 0 1 0 -1 1 1 0 1 -1] [ 0 0 1 0 0 1 0 1 -1] [ 0 -1 2 0 0 1 0 1 -1] [ 0 0 1 1 0 1 1 -1 0] [ 0 0 0 -1 0 1 1 2 0] [ 0 0 0 1 0 0 2 0 1] [ 0 0 -1 0 0 0 1 0 2] sage: view(M.T(2).matrix()) sage: view(M.T(2).matrix(), verbose=True) ------------------------------------------------------------ Traceback (most recent call last): File "", line 1, in ? TypeError: view() got an unexpected keyword argument 'verbose' sage: view(M.T(2).matrix(), debug=True) \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \input{macros} \pagestyle{empty} \begin{document} \begin{center}{\Large\bf SAGE}\end{center} \thispagestyle{empty} \small \vfill\thispagestyle{empty}\pagestyle{empty} $$ \left(\begin{array}{rrrrrrrrr} 3&0&-1&0&0&1&1&-1&0\\ 0&0&2&0&-1&1&0&1&-1\\ 0&1&0&-1&1&1&0&1&-1\\ 0&0&1&0&0&1&0&1&-1\\ 0&-1&2&0&0&1&0&1&-1\\ 0&0&1&1&0&1&1&-1&0\\ 0&0&0&-1&0&1&1&2&0\\ 0&0&0&1&0&0&2&0&1\\ 0&0&-1&0&0&0&1&0&2 \end{array}\right) $$ \vfill \vfill\end{document} sage: This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) entering extended mode LaTeX2e <2003/12/01> Babel and hyphenation patterns for american, french, german, ngerman, d utch, italian, norsk, portuges, spanish, swedish, nohyphenation, loaded. (./sage.tex (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/article.cls Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size10.clo)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amstext.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsgen.sty)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsbsy.sty) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsopn.sty)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/amssymb.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/amsfonts.sty)) (./macros.tex (/usr/local/teTeX/share/texmf.tetex/tex/latex/tools/xspace.sty)) No file sage.aux. (/usr/local/teTeX/share/texmf.tetex/tex/latex/cyrillic/ot2cmr.fd) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/umsa.fd) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/umsb.fd) [1] (./sage.aux ) ) Output written on sage.dvi (1 page, 1352 bytes). Transcript written on sage.log. Error: Can't open display: sage: log_html() _7 = HTML Logger sage: sage: sage: sage: sage: sage: clear sage: Exiting SAGE (CPU time 0m0.23s, Wall time 1m8.30s). sha:~ was$ clear sha:~ was$ sage -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- sage: M = ModularSymbols(39) sage: M.man M.manin_basis M.manin_gens_to_basis M.manin_symbols M.manin_generators M.manin_symbol M.manin_symbols_basis sage: M.manin_ge M.manin_generators M.manin_gens_to_basis sage: M.manin_generators() _2 = [(0,1), (1,0), (1,1), (1,2), (1,3), (1,4), (1,5), (1,6), (1,7), (1,8), (1,9), (1,10), (1,11), (1,12), (1,13), (1,14), (1,15), (1,16), (1,17), (1,18), (1,19), (1,20), (1,21), (1,22), (1,23), (1,24), (1,25), (1,26), (1,27), (1,28), (1,29), (1,30), (1,31), (1,32), (1,33), (1,34), (1,35), (1,36), (1,37), (1,38), (3,1), (3,2), (3,4), (3,5), (3,7), (3,8), (3,10), (3,11), (3,13), (3,16), (3,19), (3,22), (3,25), (13,1), (13,2), (13,3)] sage: print M.manin_generators() [(0,1), (1,0), (1,1), (1,2), (1,3), (1,4), (1,5), (1,6), (1,7), (1,8), (1,9), (1,10), (1,11), (1,12), (1,13), (1,14), (1,15), (1,16), (1,17), (1,18), (1,19), (1,20), (1,21), (1,22), (1,23), (1,24), (1,25), (1,26), (1,27), (1,28), (1,29), (1,30), (1,31), (1,32), (1,33), (1,34), (1,35), (1,36), (1,37), (1,38), (3,1), (3,2), (3,4), (3,5), (3,7), (3,8), (3,10), (3,11), (3,13), (3,16), (3,19), (3,22), (3,25), (13,1), (13,2), (13,3)] sage: clear sage: Exiting SAGE (CPU time 0m0.21s, Wall time 45m4.78s). sha:~ was$ clear sha:~ was$ ls Desktop Music bin s trash Documents Pictures d sage F.sobj Public install share Library Sites local tmp Movies a.txt~ parallels todo.txt sha:~ was$ tar jxvf Desktop/socs.tar.bz2 socs/ socs/_darcs/ socs/_darcs/current/ socs/_darcs/patches/ socs/_darcs/patches/pending socs/_darcs/patches/20060419030157-c4389-c8b2dc02e0f2d153d1bb2fc4a25b23305466204f.gz socs/_darcs/patches/20060419030612-c4389-6795f1dd9540cbd018c69b8483c0c8b26cc2b60f.gz socs/_darcs/prefs/ socs/_darcs/prefs/binaries socs/_darcs/prefs/boring socs/_darcs/prefs/author socs/_darcs/prefs/motd socs/_darcs/inventories/ socs/_darcs/inventory socs/clemesha-plot/ socs/clemesha-plot/basic/ socs/clemesha-plot/basic/sin.sage socs/clemesha-plot/cos.sage socs/clemesha-plot/allowed socs/cohn-coding/ socs/socs.py socs/stein-modform/ socs/README.txt sha:~ was$ ls Desktop Music bin s todo.txt Documents Pictures d sage trash F.sobj Public install share Library Sites local socs Movies a.txt~ parallels tmp sha:~ was$ r Desktop/socs.tar.bz2 sha:~ was$ sha:~ was$ sha:~ was$ ls Desktop Music bin s todo.txt Documents Pictures d sage trash F.sobj Public install share Library Sites local socs Movies a.txt~ parallels tmp sha:~ was$ cd socs/ sha:~/socs was$ ls README.txt clemesha-plot socs.py _darcs cohn-coding stein-modform sha:~/socs was$ ./socs.py Starting SoCS: Software Computation Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:01:43] "GET / HTTP/1.1" 200 - self.path = '/' D = '.' localhost - - [21/Apr/2006 14:01:43] "GET /favicon.ico HTTP/1.1" 200 - self.path = '/favicon.ico' D = 'favicon.ico' localhost - - [21/Apr/2006 14:01:45] "GET /clemesha-plot/ HTTP/1.1" 200 - self.path = '/clemesha-plot/' D = 'clemesha-plot/' localhost - - [21/Apr/2006 14:01:46] "GET /clemesha-plot/basic/ HTTP/1.1" 200 - self.path = '/clemesha-plot/basic/' D = 'clemesha-plot/basic/' localhost - - [21/Apr/2006 14:01:49] "GET /cohn-coding/ HTTP/1.1" 200 - self.path = '/cohn-coding/' D = 'cohn-coding/' localhost - - [21/Apr/2006 14:01:50] "GET /stein-modform/ HTTP/1.1" 200 - self.path = '/stein-modform/' D = 'stein-modform/' localhost - - [21/Apr/2006 14:01:52] "GET /clemesha-plot/ HTTP/1.1" 200 - self.path = '/clemesha-plot/' D = 'clemesha-plot/' localhost - - [21/Apr/2006 14:01:53] "GET /clemesha-plot/cos.sage/ HTTP/1.1" 200 - self.path = '/clemesha-plot/cos.sage/' D = 'clemesha-plot/cos.sage/' ^C^CShutting down server. sha:~/socs was$ sha:~/socs was$ sha:~/socs was$ ls README.txt clemesha-plot socs.py _darcs cohn-coding stein-modform sha:~/socs was$ cd .. sha:~ was$ ls Desktop Music bin s todo.txt Documents Pictures d sage trash F.sobj Public install share Library Sites local socs Movies a.txt~ parallels tmp sha:~ was$ r a.txt~ sha:~ was$ ls Desktop Music d sage trash Documents Pictures install share F.sobj Public local socs Library Sites parallels tmp Movies bin s todo.txt sha:~ was$ mkdir webserve sha:~ was$ mv socs webserve/ sha:~ was$ cd webserve/ sha:~/webserve was$ ls socs sha:~/webserve was$ cd sha:~ was$ mv webserve share/ sha:~ was$ cd share/ sha:~/share was$ ls 583 dapper-install-i386.iso sage 583-talk.pdf maple schedule.txt Desktop DB msri tax Desktop DF notes.txt todo.txt GoogleEarthMac.dmg passport todo.txt~ accounts photos webserve sha:~/share was$ ls 583 dapper-install-i386.iso sage 583-talk.pdf maple schedule.txt Desktop DB msri tax Desktop DF notes.txt todo.txt GoogleEarthMac.dmg passport todo.txt~ accounts photos webserve sha:~/share was$ cd webserve/ sha:~/share/webserve was$ ls socs sha:~/share/webserve was$ ls socs sha:~/share/webserve was$ cp -arv socs sage cp: illegal option -- a usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory sha:~/share/webserve was$ cp -rv socs sage socs -> sage socs/_darcs -> sage/_darcs socs/_darcs/current -> sage/_darcs/current socs/_darcs/inventories -> sage/_darcs/inventories socs/_darcs/patches -> sage/_darcs/patches socs/_darcs/patches/20060419030157-c4389-c8b2dc02e0f2d153d1bb2fc4a25b23305466204f.gz -> sage/_darcs/patches/20060419030157-c4389-c8b2dc02e0f2d153d1bb2fc4a25b23305466204f.gz socs/_darcs/patches/20060419030612-c4389-6795f1dd9540cbd018c69b8483c0c8b26cc2b60f.gz -> sage/_darcs/patches/20060419030612-c4389-6795f1dd9540cbd018c69b8483c0c8b26cc2b60f.gz socs/_darcs/patches/pending -> sage/_darcs/patches/pending socs/_darcs/prefs -> sage/_darcs/prefs socs/_darcs/prefs/author -> sage/_darcs/prefs/author socs/_darcs/prefs/binaries -> sage/_darcs/prefs/binaries socs/_darcs/prefs/boring -> sage/_darcs/prefs/boring socs/_darcs/prefs/motd -> sage/_darcs/prefs/motd socs/_darcs/inventory -> sage/_darcs/inventory socs/clemesha-plot -> sage/clemesha-plot socs/clemesha-plot/basic -> sage/clemesha-plot/basic socs/clemesha-plot/basic/sin.sage -> sage/clemesha-plot/basic/sin.sage socs/clemesha-plot/allowed -> sage/clemesha-plot/allowed socs/clemesha-plot/cos.sage -> sage/clemesha-plot/cos.sage socs/cohn-coding -> sage/cohn-coding socs/stein-modform -> sage/stein-modform socs/README.txt -> sage/README.txt socs/socs.py -> sage/socs.py sha:~/share/webserve was$ ls sage socs sha:~/share/webserve was$ cd sage sha:~/share/webserve/sage was$ ls README.txt clemesha-plot socs.py _darcs cohn-coding stein-modform sha:~/share/webserve/sage was$ cd .. sha:~/share/webserve was$ mv sage ss sha:~/share/webserve was$ cd ss sha:~/share/webserve/ss was$ ls README.txt clemesha-plot socs.py _darcs cohn-coding stein-modform sha:~/share/webserve/ss was$ r clemesha-plot cohn-coding stein-modform sha:~/share/webserve/ss was$ mv socs.py ss.py sha:~/share/webserve/ss was$ ls README.txt _darcs ss.py sha:~/share/webserve/ss was$ rm -rf _darcs sha:~/share/webserve/ss was$ ls README.txt ss.py sha:~/share/webserve/ss was$ r README.txt sha:~/share/webserve/ss was$ ls ss.py sha:~/share/webserve/ss was$ darcs initialize sha:~/share/webserve/ss was$ darcs add ss.py sha:~/share/webserve/ss was$ darcs record Darcs needs to know what name (conventionally an email address) to use as the patch author, e.g. 'Fred Bloggs '. If you provide one now it will be stored in the file '_darcs/prefs/author' and used as a default in the future. To change your preferred author address, simply delete or edit this file. What is your email address? wstein@gmail.com addfile ./ss.py Shall I record this patch? (1/?) [ynWsfqadjkc], or ? for help: y hunk ./ss.py 1 +#!/usr/bin/env python + +#***************************************************************************** +# Copyright (C) 2005 William Stein +# +# Distributed under the terms of the GNU General Public License (GPL) +# +# This code is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# The full text of the GPL is available at: +# +# http://www.gnu.org/licenses/ +# +# +# CREDITS: +# +# * Inspired (but not derived or copied from) +# by Python cookbook code with this copyright: +# Copyright (C) 2002, Thinkware AB, Sweden. +# +# * All design was joint work with Henry Cohn (of Microsoft Research) +# and Alex Clemesha +# +# CHANGES: +# 2006-04-18: initial version in progress +# +#***************************************************************************** + +""" + SoCS = Software Computation Server + + + sage: sacs(port=8389, dir='.') + +http://localhost:8000/clemesha-plot/cos-todo.tar.bz2/checkout=389 + + +post: + one var is: "clemesha-plot/cos-todo.tar.bz2" + $ + other is the location on disk of a tarball: cos.tar.bz2 + + cos-todo.tar.bz2 cos-done.tar.bz2 + + tarball could contain: + + start time + stop time + memory usage + + + +* create file + cos.checkout + stores -- when checked out + -- id of who/what checked it out. + + $ +when generating file list, the .sage files can have: + "this is checked out (date)" +generated from the xxx.checkout files. + +""" + +import BaseHTTPServer $ +from StringIO import StringIO $ +import os, sys +import shutil + + +class MyHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): + + cmds = {'/todo': 'top -n 1', $ + '/done' : 'route', $ + } $ + $ + def do_GET(self): $ + f = self.send_head() $ + if f: $ + f = StringIO() $ + machine = os.popen('hostname').readlines()[0] + print "self.path = '%s'"%self.path + + if self.path[-6:] == '.sage': + filename = self.path[1:-1] + heading = "" + body = open(filename).read() + + else: + $ + project = self.path[1:] + heading = "

Todo Files: %s

"%project + D = self.path[1:] + if D == '': + D = '.' + print "D = '%s'"%D + if not os.path.isdir(D): + body = "ERROR: No such directory: '%s'"%D + else: + L = os.listdir(D) + L.sort() + L = [P for P in L if (P[-5:] == '.sage' or os.path.isdir('%s/%s'%(D,P)))] + body = '
    \n' + body += '\n'.join(['
  • %s
  • '%(P,P) for P in L]) + body += '
' + $ + if heading != '': + f.write("%s\n" % (heading)) $ + f.write('

%s

\n' % (heading)) + + f.write(body) + $ + if heading != '': + f.write('\n') + $ + f.seek(0) $ + self.copyfile(f, self.wfile) $ + f.close() $ + return f $ + $ + def do_HEAD(self): $ + f = self.send_head() $ + if f: $ + f.close() $ + $ + def send_head(self): $ + path = self.path $ + #if not path in ['/'] + self.cmds.keys(): $ + # head = 'Command "%s" not found. Try one of these:
    ' % path $ + # msg = head + self.getMenu() $ + # self.send_error(404, msg) $ + # return None $ + self.send_response(200) + if self.path[-6:] == '.sage/': + self.send_header("Content-type", 'text/plain') + else: + self.send_header("Content-type", 'text/html') $ + self.end_headers() $ + f = StringIO() $ + f.write("A test %s\n" % self.path) $ + f.seek(0) $ + return f $ + $ + def getMenu(self): $ + keys = self.cmds.keys() $ + keys.sort() $ + msg = [] $ + for k in keys: $ + msg.append('
  • %s => %s
  • ' %( + k, k, self.cmds[k])) $ + msg.append('
') $ + return "\n".join(msg) $ + $ + def copyfile(self, source, outputfile): $ + shutil.copyfileobj(source, outputfile) $ + $ +def main(HandlerClass = MyHTTPRequestHandler, $ + ServerClass = BaseHTTPServer.HTTPServer): $ + BaseHTTPServer.test(HandlerClass, ServerClass) $ + $ +if __name__ == '__main__': + print "Starting SoCS: Software Computation Server" + print "Press ctrl-C to exit." + try: + main() + except KeyboardInterrupt: + print "Shutting down server." + sys.exit(0) + $ + + Shall I record this patch? (2/?) [ynWsfqadjkc], or ? for help: y What is the patch name? initial version Do you want to add a long comment? [yn] n Finished recording patch 'initial version' sha:~/share/webserve/ss was$ ls _darcs ss.py sha:~/share/webserve/ss was$ sage -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- sage: banner() -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- sage: Exiting SAGE (CPU time 0m0.03s, Wall time 1m18.73s). sha:~/share/webserve/ss was$ ls _darcs ss.py ss.py~ sha:~/share/webserve/ss was$ ./ss.py Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:09:48] "GET / HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:09:53] "GET / HTTP/1.1" 200 - ^C^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:11:06] "GET / HTTP/1.1" 200 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 49304) Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/SocketServer.py", line 222, in handle_request self.process_request(request, client_address) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/SocketServer.py", line 241, in process_request self.finish_request(request, client_address) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/SocketServer.py", line 254, in finish_request self.RequestHandlerClass(request, client_address, self) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/SocketServer.py", line 521, in __init__ self.handle() File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/BaseHTTPServer.py", line 324, in handle self.handle_one_request() File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/BaseHTTPServer.py", line 318, in handle_one_request method() File "./ss.py", line 46, in do_GET f.write("SAGE Server\n" % (heading)) NameError: global name 'heading' is not defined ---------------------------------------- ^C^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:11:23] "GET / HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:11:29] "GET / HTTP/1.1" 200 - ^C ^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:12:23] "GET / HTTP/1.1" 200 - ^C^CShutting down server. sha:~/share/webserve/ss was$ sha:~/share/webserve/ss was$ ls _darcs ss.py ss.py~ sha:~/share/webserve/ss was$ sage-python -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- Python 2.4.3 (#1, Apr 7 2006, 00:55:29) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> sha:~/share/webserve/ss was$ ./ss.py -bash: ./ss.py: sage-python: bad interpreter: No such file or directory sha:~/share/webserve/ss was$ ./ss.py -bash: ./ss.py: sage-python: bad interpreter: No such file or directory sha:~/share/webserve/ss was$ ./ss.py -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:13:21] "GET / HTTP/1.1" 200 - ^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:14:04] "GET / HTTP/1.1" 200 - ^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:15:11] "GET / HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:15:38] "GET /ModularSymbols(389,%202) HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:16:14] "GET /ModularSymbols(389,%202) HTTP/1.1" 200 - ^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:16:21] "GET /ModularSymbols(389,%202) HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:16:27] "GET /M%20=%20ModularSymbols(389,%202) HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:16:35] "GET /M HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:16:39] "GET /M.basis() HTTP/1.1" 200 - ^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:18:27] "GET /M=MS(37) HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:18:33] "GET /M.basis() HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:18:38] "GET /M.T(2).matrix() HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:18:42] "GET /M.T(2).fcp() HTTP/1.1" 200 - ^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:19:48] "GET /M=MS(37) HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:19:54] "GET /M.basis() HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:20:00] "GET /E=EC('37a') HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:20:05] "GET /E.anlist(100) HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:20:20] "GET /M.q_expansion_basis(10) HTTP/1.1" 200 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 49344) Traceback (most recent call last): File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 222, in handle_request self.process_request(request, client_address) File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 241, in process_request self.finish_request(request, client_address) File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 254, in finish_request self.RequestHandlerClass(request, client_address, self) File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 521, in __init__ self.handle() File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/BaseHTTPServer.py", line 316, in handle self.handle_one_request() File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/BaseHTTPServer.py", line 310, in handle_one_request method() File "./ss.py", line 54, in do_GET out = sage.sage0(cmd) File "/Users/was/s/local/lib/python2.4/site-packages/sage/interfaces/sage0.py", line 140, in __call__ return SageElement(self, x) File "/Users/was/s/local/lib/python2.4/site-packages/sage/interfaces/expect.py", line 556, in __init__ raise TypeError, x TypeError: Error executing code in SAGE CODE: sage4=M.q_expansion_basis(10) SAGE ERROR: Traceback (most recent call last): File "", line 1, in ? File "/Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/space.py", line 329, in q_expansion_basis raise ArithmeticError, "space must be cuspidal" ArithmeticError: space must be cuspidal ---------------------------------------- localhost - - [21/Apr/2006 14:20:34] "GET /S=M.cuspidal_subspace() HTTP/1.1" 200 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 49346) Traceback (most recent call last): File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 222, in handle_request self.process_request(request, client_address) File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 241, in process_request self.finish_request(request, client_address) File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 254, in finish_request self.RequestHandlerClass(request, client_address, self) File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 521, in __init__ self.handle() File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/BaseHTTPServer.py", line 316, in handle self.handle_one_request() File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/BaseHTTPServer.py", line 310, in handle_one_request method() File "./ss.py", line 54, in do_GET out = sage.sage0(cmd) File "/Users/was/s/local/lib/python2.4/site-packages/sage/interfaces/sage0.py", line 140, in __call__ return SageElement(self, x) File "/Users/was/s/local/lib/python2.4/site-packages/sage/interfaces/expect.py", line 556, in __init__ raise TypeError, x TypeError: Error executing code in SAGE CODE: sage5=S=M.cuspidal_subspace() SAGE ERROR: Traceback (most recent call last): File "", line 1, in ? AttributeError: 'ModularSymbolsAmbient_wt2_g0_Q' object has no attribute 'cuspidal_subspace' ---------------------------------------- ^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- File "./ss.py", line 56 except, msg: ^ SyntaxError: invalid syntax sha:~/share/webserve/ss was$ ./ss.py -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:21:13] "GET /S=M.cuspidal_subspace() HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:21:18] "GET /M=MS(37) HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:21:23] "GET /S=M.cuspidal_subspace() HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:21:34] "GET /S=M.cuspidal_submodule() HTTP/1.1" 200 - ^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:22:04] "GET /M=MS(37) HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:22:14] "GET /S=M.cuspidal_subspace() HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:22:20] "GET /S=M.cuspidal_submodule() HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:22:25] "GET /S.basis() HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:22:29] "GET /S.basis? HTTP/1.1" 200 - ^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:22:46] "GET /M=MS(37) HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:22:51] "GET /M.basis? HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:22:57] "GET /M.basis? HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:23:07] "GET /help(M.basis) HTTP/1.1" 200 - ^CInterrupting Sage... ^CInterrupting Sage... ^C---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 49363) Traceback (most recent call last): File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 222, in handle_request self.process_request(request, client_address) File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 241, in process_request self.finish_request(request, client_address) File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 254, in finish_request self.RequestHandlerClass(request, client_address, self) File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/SocketServer.py", line 521, in __init__ self.handle() File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/BaseHTTPServer.py", line 316, in handle self.handle_one_request() File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/BaseHTTPServer.py", line 310, in handle_one_request method() File "./ss.py", line 55, in do_GET out = sage.sage0.eval(cmd) File "/Users/was/s/local/lib/python2.4/site-packages/sage/interfaces/sage0.py", line 169, in eval return Expect.eval(self, line) File "/Users/was/s/local/lib/python2.4/site-packages/sage/interfaces/expect.py", line 326, in eval self._keyboard_interrupt() File "/Users/was/s/local/lib/python2.4/site-packages/sage/interfaces/expect.py", line 318, in _keyboard_interrupt self._expect.expect(self._prompt) File "/Users/was/sage/sage-1.2.0/local/lib/python2.4/site-packages/pexpect.py", line 909, in expect ^CShutting down server. sha:~/share/webserve/ss was$ ./ss.py -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- Starting SS: Sage Server Press ctrl-C to exit. Serving HTTP on 0.0.0.0 port 8000 ... localhost - - [21/Apr/2006 14:23:32] "GET /2+2 HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:23:38] "GET /E=EC('37a') HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:23:42] "GET /E.mwrank() HTTP/1.1" 200 - localhost - - [21/Apr/2006 14:23:47] "GET /print%20E.mwrank() HTTP/1.1" 200 - ^CShutting down server. sha:~/share/webserve/ss was$ cd sha:~ was$ clear sha:~ was$ sage -------------------------------------------------------- | SAGE Version 1.2.3, Build Date: 2006-04-20-2054 | | Distributed under the GNU General Public License V2. | | For help type ? or ??. | -------------------------------------------------------- sage: M = ModularSymbols(1) sage: M _2 = Full Modular Symbols space for Gamma_0(1) of weight 2 with sign 0 and dimension 0 over Rational Field sage: M = ModularSymbols(2) sage: M _4 = Full Modular Symbols space for Gamma_0(2) of weight 2 with sign 0 and dimension 1 over Rational Field sage: M.dime M.dimension M.dimension_of_associated_cuspform_space sage: M.dimension() _5 = 1 sage: M.manin_gen M.manin_generators M.manin_gens_to_basis sage: M.manin_generators() _6 = [(0,1), (1,0), (1,1)] sage: M.manin_basis() _7 = [1] sage: M = ModularSymbols(11) sage: M _9 = Full Modular Symbols space for Gamma_0(11) of weight 2 with sign 0 and dimension 3 over Rational Field sage: M.manin_generators() _10 = [(0,1), (1,0), (1,1), (1,2), (1,3), (1,4), (1,5), (1,6), (1,7), (1,8), (1,9), (1,10)] sage: M.manin_basis() _11 = [1, 9, 10] sage: [M.manin_genators()[i] for i in M.manin_basis()] ------------------------------------------------------------ Traceback (most recent call last): File "", line 1, in ? AttributeError: 'ModularSymbolsAmbient_wt2_g0_Q' object has no attribute 'manin_genators' sage: [M.manin_generators()[i] for i in M.manin_basis()] _13 = [(1,0), (1,8), (1,9)] sage: M.manin_sym M.manin_symbol M.manin_symbols M.manin_symbols_basis sage: M.manin_gens_to_basis() _14 = [-1 0 0] [ 1 0 0] [ 0 0 0] [ 0 0 1] [ 0 -1 1] [ 0 -1 0] [ 0 0 -1] [ 0 0 -1] [ 0 1 -1] [ 0 1 0] [ 0 0 1] [ 0 0 0] sage: time M = ModularSymbols(2006) CPU times: user 1.72 s, sys: 0.24 s, total: 1.97 s Wall time: 1.97 sage: v = [M.manin_generators()[i] for i in M.manin_basis()] sage: len(v) _17 = 541 sage: len(M.manin_generators()) _18 = 3240 sage: M.manin_gen M.manin_generators M.manin_gens_to_basis sage: M.manin_gens_to_basis()[20] _19 = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) sage: M = ModularSymbols(11) sage: M _21 = Full Modular Symbols space for Gamma_0(11) of weight 2 with sign 0 and dimension 3 over Rational Field sage: M.basis() _22 = ((1,0), (1,8), (1,9)) sage: set_modsym_print_mode('modsym') ------------------------------------------------------------ Traceback (most recent call last): File "", line 1, in ? File "/Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/element.py", line 52, in set_modsym_print_mode raise ValueError, "mode must be one of 'manin', 'modular', or 'vector'" ValueError: mode must be one of 'manin', 'modular', or 'vector' sage: set_modsym_print_mode('modular') sage: M.basis() _25 = ({Infinity,0}, {-1/8,0}, {-1/9,0}) sage: M([1/17, oo]) _26 = -{Infinity,0} - {-1/9,0} sage: M([1/17, oo]) + M([-45/19393, 1/121]) _27 = -{Infinity,0} - {-1/9,0} sage: M([1/17, oo]) + M([-45/19393, 1/11]) _28 = -{Infinity,0} - {-1/9,0} sage: M([1/17, oo]) + M([-45/19393, -1/11]) _29 = -{Infinity,0} - {-1/9,0} sage: M([-45/19393, -1/11]) _30 = 0 sage: M([-1/121, -1/11]) _31 = 0 sage: M([-1/121, 0]) _32 = {Infinity,0} sage: M = ModularSymbols(39) sage: M _34 = Full Modular Symbols space for Gamma_0(39) of weight 2 with sign 0 and dimension 9 over Rational Field sage: M.basis() _35 = ({Infinity,0}, {1/4,1/3}, {-4/11,-1/3}, {6/19,1/3}, {7/22,1/3}, {8/25,1/3}, {0,1/13}, {-1/2,-6/13}, {-1/3,-4/13}) sage: M = ModularSymbols(389) sage: M.basis() _37 = ({Infinity,0}, {-1/187,0}, {-1/238,0}, {-1/240,0}, {-1/253,0}, {-1/254,0}, {-1/256,0}, {-1/257,0}, {-1/286,0}, {-1/304,0}, {-1/305,0}, {-1/312,0}, {-1/313,0}, {-1/314,0}, {-1/315,0}, {-1/322,0}, {-1/323,0}, {-1/324,0}, {-1/326,0}, {-1/330,0}, {-1/332,0}, {-1/338,0}, {-1/340,0}, {-1/341,0}, {-1/342,0}, {-1/343,0}, {-1/344,0}, {-1/345,0}, {-1/346,0}, {-1/347,0}, {-1/348,0}, {-1/349,0}, {-1/350,0}, {-1/354,0}, {-1/355,0}, {-1/356,0}, {-1/357,0}, {-1/359,0}, {-1/360,0}, {-1/361,0}, {-1/362,0}, {-1/363,0}, {-1/364,0}, {-1/365,0}, {-1/366,0}, {-1/367,0}, {-1/368,0}, {-1/369,0}, {-1/371,0}, {-1/372,0}, {-1/373,0}, {-1/374,0}, {-1/375,0}, {-1/376,0}, {-1/377,0}, {-1/378,0}, {-1/379,0}, {-1/380,0}, {-1/381,0}, {-1/382,0}, {-1/383,0}, {-1/384,0}, {-1/385,0}, {-1/386,0}, {-1/387,0}) sage: print M.basis() ({Infinity,0}, {-1/187,0}, {-1/238,0}, {-1/240,0}, {-1/253,0}, {-1/254,0}, {-1/256,0}, {-1/257,0}, {-1/286,0}, {-1/304,0}, {-1/305,0}, {-1/312,0}, {-1/313,0}, {-1/314,0}, {-1/315,0}, {-1/322,0}, {-1/323,0}, {-1/324,0}, {-1/326,0}, {-1/330,0}, {-1/332,0}, {-1/338,0}, {-1/340,0}, {-1/341,0}, {-1/342,0}, {-1/343,0}, {-1/344,0}, {-1/345,0}, {-1/346,0}, {-1/347,0}, {-1/348,0}, {-1/349,0}, {-1/350,0}, {-1/354,0}, {-1/355,0}, {-1/356,0}, {-1/357,0}, {-1/359,0}, {-1/360,0}, {-1/361,0}, {-1/362,0}, {-1/363,0}, {-1/364,0}, {-1/365,0}, {-1/366,0}, {-1/367,0}, {-1/368,0}, {-1/369,0}, {-1/371,0}, {-1/372,0}, {-1/373,0}, {-1/374,0}, {-1/375,0}, {-1/376,0}, {-1/377,0}, {-1/378,0}, {-1/379,0}, {-1/380,0}, {-1/381,0}, {-1/382,0}, {-1/383,0}, {-1/384,0}, {-1/385,0}, {-1/386,0}, {-1/387,0}) sage: M([-39393/389383,3893/3838381181*389]) ------------------------------------------------------------ Traceback (most recent call last): File "", line 1, in ? File "/Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/ambient.py", line 258, in __call__ return self.modular_symbol(x) File "/Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/ambient.py", line 365, in modular_symbol b = self._modular_symbol_0_to_alpha(beta, i) File "/Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/ambient.py", line 306, in _modular_symbol_0_to_alpha a += self.manin_symbol((i, u, v), check=False) File "/Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/ambient.py", line 289, in manin_symbol return self(y) File "/Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/ambient.py", line 243, in __call__ return self.element(x) File "/Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/ambient.py", line 697, in element t = self.manin_symbols().index(x.tuple()) File "/Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/manin_symbols.py", line 84, in index x = self.normalize(x) File "/Users/was/s/local/lib/python2.4/site-packages/sage/modular/modsym/manin_symbols.py", line 223, in normalize u,v = self.__P1.normalize(x[1],x[2]) OverflowError: long int too large to convert to int sage: M([-39393/389, 389]) _40 = {Infinity,0} + {-1/312,0} - {-1/324,0} + {-1/326,0} - {-1/355,0} + {-1/356,0} - {-1/364,0} + {-1/365,0} - {-1/377,0} + {-1/378,0} - {-1/385,0} sage: M = ModularSymbols(11) sage: M _42 = Full Modular Symbols space for Gamma_0(11) of weight 2 with sign 0 and dimension 3 over Rational Field sage: T2 = M.hecke_operator(2) sage: T2 _44 = Hecke operator T_2 on Full Modular Symbols space for Gamma_0(11) of weight 2 with sign 0 and dimension 3 over Rational Field sage: T2.matrix() _45 = [ 3 0 -1] [ 0 -2 0] [ 0 0 -2] sage: M.basis() _46 = ({Infinity,0}, {-1/8,0}, {-1/9,0}) sage: T97 = M.hecke_operator(97) sage: T97.matrix() _48 = [ 98 0 -21] [ 0 -7 0] [ 0 0 -7] sage: T97*T2 - T2*T97 _49 = Hecke operator on Full Modular Symbols space for Gamma_0(11) of weight 2 with sign 0 and dimension 3 over Rational Field defined by: [0 0 0] [0 0 0] [0 0 0] sage: T2 _50 = Hecke operator T_2 on Full Modular Symbols space for Gamma_0(11) of weight 2 with sign 0 and dimension 3 over Rational Field sage: T2.charpoly() _51 = x^3 + x^2 - 8*x - 12 sage: f = T2.charpoly() sage: f _53 = x^3 + x^2 - 8*x - 12 sage: factor(f) _54 = (x - 3) * (x + 2)^2 sage: T2 _55 = Hecke operator T_2 on Full Modular Symbols space for Gamma_0(11) of weight 2 with sign 0 and dimension 3 over Rational Field sage: T2.matrix() _56 = [ 3 0 -1] [ 0 -2 0] [ 0 0 -2] sage: T3 = M.hecke_operator(3) sage: T3.matrix() _58 = [ 4 0 -1] [ 0 -1 0] [ 0 0 -1] sage: T3.matrix().fcp() _59 = (x - 4) * (x + 1)^2 sage: S = M.cuspidal_submodule() sage: S _61 = Dimension 2 subspace of a modular symbols space of level 11 sage: S.hecke_operator(2).matrix() _62 = [-2 0] [ 0 -2] sage: S.hecke_operator(3).matrix() _63 = [-1 0] [ 0 -1] sage: S.hecke_operator(5).matrix() _64 = [1 0] [0 1] sage: S.hecke_operator(7).matrix() _65 = [-2 0] [ 0 -2] sage: [S.hecke_operator(p).matrix()[0,0] for p primesage: v = [S.hecke_operator(p).matrix()[0,0] for p primes(100)] ------------------------------------------------------------ File "", line 1 v = [S.hecke_operator(p).matrix()[0,0] for p primes(100)] ^ SyntaxError: invalid syntax sage: v = [S.hecke_operator(p).matrix()[0,0] for p in primes(100)] sage: print v [-2, -1, 1, -2, 1, 4, -2, 0, -1, 0, 7, 3, -8, -6, 8, -6, 5, 12, -7, -3, 4, -10, -6, 15, -7] sage: E = EllipticCurve('11a') sage: E _70 = Elliptic Curve defined by y^2 + y = x^3 - x^2 - 10*x - 20 over Rational Field sage: E.conductor() _71 = 11 sage: w = [p+1-E.Np(p) for p in primes(100)] sage: print v [-2, -1, 1, -2, 1, 4, -2, 0, -1, 0, 7, 3, -8, -6, 8, -6, 5, 12, -7, -3, 4, -10, -6, 15, -7] sage: print w [-2, -1, 1, -2, 1, 4, -2, 0, -1, 0, 7, 3, -8, -6, 8, -6, 5, 12, -7, -3, 4, -10, -6, 15, -7] sage: