[sage-support] Re: Reduced quadratic Forms

2010-12-16 Thread cjung
Dear all, if know using the definition by Cohen implemented a little sage class computing the reduced form in the indefinite case, because I could not find such a function anyware. It seems to work fine. If there is some time I try add it to the sage libary with the remark, that the function compu

[sage-support] Re: permutation groups error in the Primer?

2010-12-16 Thread John Thurber
OK, I checked permgroup.py and saw the answer -- disjoint cycles required. sorry for the noise. John -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group

[sage-support] Re: Reduced quadratic Forms

2010-12-16 Thread John Cremona
I believe that the current implementation in Sage is only designed to work with positive definite forms; but it is also possible that this is not checked properly. Regarding the reduction of indefinite forms, one issue to be considered by whoever wishes to implement reductiion (and cycles of redu

[sage-support] permutation groups error in the Primer?

2010-12-16 Thread John Thurber
I'm looking through the Group Theory and Sage: Primer, and I generate an error with the example on symmetric groups (page 5 of the pdf.) {{{ G = SymmetricGroup(5) sigma = G("(1,3)(2,5,4)") rho = G([(1,4), (1,5)]) rho^-1*sigma*rho }}} In particular, the rho assignment generates: {{{ Traceback (m

[sage-support] Re: importing line3d from sage -ipython

2010-12-16 Thread Jason Grout
On 12/16/10 3:16 AM, Nin wrote: When importing line3d from a sage session with IPython as interpreter, I've got the following error message: >>> from sage.plot.plot3d.shapes2 import line3d You can't import just part of Sage, since lots of Sage depends on lots of other modules in Sage, and r

[sage-support] importing line3d from sage -ipython

2010-12-16 Thread Nin
When importing line3d from a sage session with IPython as interpreter, I've got the following error message: >>> from sage.plot.plot3d.shapes2 import line3d /home/nin/sage-4.6/local/lib/python2.6/site-packages/sage/rings/complex_field.pyc in ComplexField(prec, names) 87 if not C

[sage-support] pari vs. gp issues

2010-12-16 Thread Alyson Deines
Hi all, I have an issue where I'm trying to compute hilbert symbols in pari instead of gp due to time issues: sage: K. = NumberField(x^5-2*x+3) sage: P = K.prime_above(5) sage: a = g+2 sage: b = g^3 sage: nK = K.pari_nf() sage: na = a._pari_() sage: nb = b._pari_() sage: hnfP = P.pari_hnf() sage

Re: [sage-support] Re: A question about numpy?

2010-12-16 Thread 李季
It must has a proble with numpy and sage integer. Thanks Jason Grout. 2010/12/16 Jason Grout > On 12/15/10 7:16 AM, liji.ma...@gmail.com wrote: > >> Hi Sage group: >> >> I have met a problem. >> The code is as follow. >> >> import numpy as np >> A = np.mat([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) >>