Hi all,

On Save v4.6, (Ubuntu 10.04, 64bit), I found that
{{{
p = 103; identity_matrix(p).det()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_132.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding:
utf-8 -*-\\n" +
_support_.preparse_worksheet_cell(base64.b64decode("aWRlbnRpdHlfbWF0cml4KDEwMykuZGV0KCk="),globals())+"\\n");
execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>

  File "/tmp/tmpV8DL4M/___code___.py", line 3, in <module>
    exec compile(u'identity_matrix(_sage_const_103 ).det()
  File "", line 1, in <module>

  File "matrix2.pyx", line 1164, in sage.matrix.matrix2.Matrix.det
(sage/matrix/matrix2.c:7757)
  File "matrix_integer_dense.pyx", line 3423, in
sage.matrix.matrix_integer_dense.Matrix_integer_dense.determinant
(sage/matrix/matrix_integer_dense.c:25287)
  File 
"/home/iwao/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/matrix/matrix_integer_dense_hnf.py",
line 199, in det_padic
    r = A.rank()
  File "matrix_integer_dense.pyx", line 3286, in
sage.matrix.matrix_integer_dense.Matrix_integer_dense.rank
(sage/matrix/matrix_integer_dense.c:24590)
  File "matrix_integer_dense.pyx", line 3308, in
sage.matrix.matrix_integer_dense.Matrix_integer_dense._rank_modp
(sage/matrix/matrix_integer_dense.c:24877)
RuntimeError
}}}

When p is 101, it works fine.

If I specify the algorithm as 'ntl' or 'pari', it works.

{{{
p = 103; identity_matrix(p).det(algorithm='ntl')
1
}}}


Best regards.
-- 
---
Iwao KIMURA
Dept. Math., University of Toyama, Japan.

-- 
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 at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to