The Sage package is coming along. It passes the vast majority of tests,
and is usable on the command line or via the notebook. However, there are
still various issues.
The worst is the LinBox problem I described earlier involving
sage.matrix.matrix_integer_dense.Matrix_integer_dense._charpoly_linbox
remains. Interestingly, devel/sage/sage/libs/linbox/linbox.pyx passes all
tests. So, I think it's just a few functions that don't work, but they
manage to break a lot of stuff, regardless. This is my top priority.
There also are a moderate number of less serious problems causing doctest
failures, each isolated to only 1-3 files (I give one example of each
class below, to avoid having an endlessly long email):
- About half the PolyBoRi doctests fail.
- Almost everything involving RQDF gives obviously wrong answers.
- There are a lot of ZeroDivisionErrors in the p-adic elliptic curves
code.
- A few tests never terminate:
/devel/sage/sage/schemes/elliptic_curves/padic_lseries.py
/usr/lib/sagemath/devel/sage/sage/modular/abvar/abvar.py
- There are a few doctests failures in
devel/sage/sage/calculus/test_sympy.py related to _sage_.
- The HadamardMat() function in my Guava package seems to not work (I've
confirmed this on the Gap command line). guava.py passes all tests, and
this seems fairly isolated to that function.
- Some doctests fail in the Quaternion algebra.
- devel/sage/sage/stats/test.py gives a "mysterious error", but otherwise
passes its tests.
- Several doctests in devel/sage/sage/modular/congroup.py fail
- Tests involving the xgcd function fail, especially
devel/sage/sage/rings/integer.pyx.
If you have any thoughts on how to debug any of these, let me know.
There are a few issues
- python-zodb in Lenny doesn't work with python2.5. Since python2.5
support is a release goal for Lenny, I'm sure this will be fixed
eventually, but for the moment anything involving a database fails (I
fixed this problem for testing, but the Debian python-zodb maintainer
seems to want to block on a zope upgrade in Debian).
- jmol is not included; it should be a separate package, and doesn't seem
to be important enough to include in my Sage packages (and apparently it
at least used to require non-free stuff to build). I'll try to package it
separately in time, but am unsure whether I'll succeed.
- There's still the arpack licensing issue I discussed previously. The
result will be that python-arpack is not included in the Debian package;
it's not used for much so this is probably not a big deal.
-Tim Abbott
RQDF:
sage -t devel/sage/sage/rings/real_rqdf.pyx
**********************************************************************
File "/home/tabbott/.sage/tests/real_rqdf.py", line 314:
sage: RQDF.pi()
Expected:
3.141592653589793238462643383279502884197169399375105820974944590
Got:
3.000000000000000000000000000000000000000000000000000000000000000
**********************************************************************
PADICS:
sage -t devel/sage/sage/schemes/elliptic_curves/padics.py
**********************************************************************
File "/home/tabbott/.sage/tests/padics.py", line 67:
sage: L = E.padic_lseries(5); L
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.5/doctest.py", line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_1[2]>", line 1, in <module>
L = E.padic_lseries(Integer(5)); L###line 67:
sage: L = E.padic_lseries(5); L
File
"/usr/lib/python2.5/site-packages/sage/schemes/elliptic_curves/padics.py",
line 135, in padic_lseries
normalize = normalize, use_eclib=use_eclib)
File
"/usr/lib/python2.5/site-packages/sage/schemes/elliptic_curves/padic_lseries.py",
line 104, in __init__
self._modular_symbol = E.modular_symbol(sign=1,
normalize=normalize)
File
"/usr/lib/python2.5/site-packages/sage/schemes/elliptic_curves/ell_rational_field.py",
line 887, in modular_symbol
M = ell_modular_symbols.ModularSymbol(self, sign, normalize)
File
"/usr/lib/python2.5/site-packages/sage/schemes/elliptic_curves/ell_modular_symbols.py",
line 115, in __init__
P = self._modsym.integral_period_mapping()
File
"/usr/lib/python2.5/site-packages/sage/modular/modsym/space.py", line
1572, in integral_period_mapping
D = D * C**(-1)
File "matrix0.pyx", line 2759, in sage.matrix.matrix0.Matrix.__pow__
(sage/matrix/matrix0.c:14682)
File "element.pyx", line 1459, in
sage.structure.element.RingElement.__pow__ (sage/structure/element.c:9182)
File "element.pyx", line 3071, in
sage.structure.element.generic_power_c (sage/structure/element.c:19264)
ZeroDivisionError
**********************************************************************
GUAVA:
sage -t devel/sage/sage/combinat/combinat.py
**********************************************************************
File "/home/tabbott/.sage/tests/combinat.py", line 209:
sage: hadamard_matrix(4)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.5/doctest.py", line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_1[1]>", line 1, in <module>
hadamard_matrix(Integer(4))###line 209:
sage: hadamard_matrix(4)
File "/usr/lib/python2.5/site-packages/sage/combinat/combinat.py",
line 223, in hadamard_matrix
raise NotImplementedError, "Hadamard matrix of order %s does not
exist or is not implemented yet."%n
NotImplementedError: Hadamard matrix of order 4 does not exist or is
not implemented yet.
**********************************************************************
SYMPY:
sage -t devel/sage/sage/calculus/test_sympy.py
**********************************************************************
File "/home/tabbott/.sage/tests/test_sympy.py", line 118:
: e._sage_()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.5/doctest.py", line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_0[45]>", line 1, in <module>
e._sage_()###line 118:
: e._sage_()
File "/var/lib/python-support/python2.5/sympy/core/power.py", line
687, in _sage_
return self.args[0]._sage_() ** self.args[1]._sage_()
File "/var/lib/python-support/python2.5/sympy/core/basic.py", line
218, in __getattr__
raise AttributeError(name)
AttributeError: _sage_
**********************************************************************
QUATERNIONS:
sage -t devel/sage/sage/algebras/quaternion_algebra_element.py
**********************************************************************
File "/home/tabbott/.sage/tests/quaternion_algebra_element.py", line 210:
sage: i.scalar_part()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.5/doctest.py", line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_10[2]>", line 1, in <module>
i.scalar_part()###line 210:
sage: i.scalar_part()
File
"/usr/lib/python2.5/site-packages/sage/algebras/quaternion_algebra_element.py",
line 216, in scalar_part
return self.reduced_trace()/2
File
"/usr/lib/python2.5/site-packages/sage/algebras/quaternion_algebra_element.py",
line 72, in reduced_trace
w = M.gen(0)
File "/usr/lib/python2.5/site-packages/sage/modules/free_module.py",
line 989, in gen
raise ValueError, "Generator %s not defined."%i
ValueError: Generator 0 not defined.
**********************************************************************
CONGROUP:
sage -t devel/sage/sage/modular/congroup.py
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 587:
sage: list(Gamma0(5).coset_reps())
Expected:
[[1, 0, 0, 1],
[0, -1, 1, 0],
[1, 0, 1, 1],
[1, 1, 1, 2],
[1, 2, 1, 3],
[1, 3, 1, 4]]
Got:
[[1, 0, 0, 1], [0, -1, 1, 0], [0, -1, 1, 1], [0, -1, 1, 2], [0, -1, 1,
3], [0, -1, 1, 4]]
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 594:
sage: list(Gamma0(4).coset_reps())
Expected:
[[1, 0, 0, 1],
[0, -1, 1, 0],
[1, 0, 1, 1],
[1, 1, 1, 2],
[1, 2, 1, 3],
[-1, -1, 2, 1]]
Got:
[[1, 0, 0, 1], [0, -1, 1, 0], [0, -1, 1, 1], [0, -1, 1, 2], [0, -1, 1,
3], [1, 0, 2, 1]]
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 615:
sage: for g in Gamma0(3).generators():
print g
print '---'
Expected:
[1 1]
[0 1]
---
[-1 0]
[ 0 -1]
---
...
---
[-2 1]
[-3 1]
---
Got:
[1 1]
[0 1]
---
[-1 0]
[ 0 -1]
---
[-2 -1]
[ 3 1]
---
[-1 -1]
[ 3 2]
---
[ 1 0]
[-3 1]
---
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 854:
sage: for g in Gamma1(3).generators():
print g
print '---'
Expected:
[1 1]
[0 1]
---
[ 31 -14]
[ 51 -23]
---
[-5 4]
[-9 7]
---
...
---
[4 3]
[9 7]
---
[ -5 -2]
[-12 -5]
---
Got:
[1 1]
[0 1]
---
[-20 9]
[ 51 -23]
---
[ 4 1]
[-9 -2]
---
[-5 -2]
[ 3 1]
---
[-2 -1]
[ 3 1]
---
[-5 2]
[12 -5]
---
[ 1 0]
[-3 1]
---
[ 4 -1]
[ 9 -2]
---
[ -5 3]
[-12 7]
---
[1 0]
[3 1]
---
[ 7 -3]
[12 -5]
---
[ 4 -1]
[ 9 -2]
---
[ -5 3]
[-12 7]
---
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 1105:
sage: for g in GammaH(3, [2]).generators():
print g
print '---'
Expected:
[1 1]
[0 1]
---
[-1 0]
[ 0 -1]
---
[ 1 -1]
[ 0 1]
---
[ 1 -1]
[ 3 -2]
---
[ 2 -1]
[ 3 -1]
---
[-2 1]
[-3 1]
---
Got:
[1 1]
[0 1]
---
[-1 0]
[ 0 -1]
---
[-2 -1]
[ 3 1]
---
[-1 -1]
[ 3 2]
---
[ 1 0]
[-3 1]
---
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 169:
sage: Gamma0(3).gens()
Expected:
([1 1]
[0 1],
[-1 0]
[ 0 -1],
[ 1 -1]
[ 0 1],
[ 1 -1]
[ 3 -2],
[ 2 -1]
[ 3 -1],
[-2 1]
[-3 1])
Got:
([1 1]
[0 1], [-1 0]
[ 0 -1], [-2 -1]
[ 3 1], [-1 -1]
[ 3 2], [ 1 0]
[-3 1])
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 182:
sage: Gamma1(2).gens()
Expected:
([1 1]
[0 1],
[-1 0]
[ 0 -1],
[ 1 -1]
[ 0 1],
[ 1 -1]
[ 2 -1],
[-1 1]
[-2 1])
Got:
([1 1]
[0 1], [-1 0]
[ 0 -1], [-1 -1]
[ 2 1], [ 1 0]
[-2 1])
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 193:
sage: GammaH(3, [2]).gens()
Expected:
([1 1]
[0 1],
[-1 0]
[ 0 -1],
[ 1 -1]
[ 0 1],
[ 1 -1]
[ 3 -2],
[ 2 -1]
[ 3 -1],
[-2 1]
[-3 1])
Got:
([1 1]
[0 1], [-1 0]
[ 0 -1], [-2 -1]
[ 3 1], [-1 -1]
[ 3 2], [ 1 0]
[-3 1])
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 218:
sage: Gamma0(20).gen(7)
Expected:
[17 11]
[20 13]
Got:
[-3 1]
[20 -7]
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 221:
sage: Gamma1(16).gen(5)
Expected:
[ 1329 -758]
[ 3056 -1743]
Got:
[1329 571]
[3056 1313]
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 224:
sage: GammaH(13, [8]).gen(3)
Expected:
[ 885 -218]
[1157 -285]
Got:
[-272 67]
[1157 -285]
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 237:
sage: Gamma0(22).ngens()
Expected:
42
Got:
40
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 239:
sage: Gamma1(14).ngens()
Expected:
250
Got:
217
**********************************************************************
File "/home/tabbott/.sage/tests/congroup.py", line 241:
sage: GammaH(11, [3]).ngens()
Expected:
31
Got:
29
**********************************************************************
XGCD:
sage -t devel/sage/sage/rings/integer.pyx
**********************************************************************
File "/home/tabbott/.sage/tests/integer.py", line 3082:
sage: Integer(5)._xgcd(7)
Expected:
(1, -4, 3)
Got:
(1, 3, -2)
**********************************************************************
File "/home/tabbott/.sage/tests/integer.py", line 3093:
sage: Integer(3)._xgcd(21)
Expected:
(3, -20, 3)
Got:
(3, 1, 0)
**********************************************************************
File "/home/tabbott/.sage/tests/integer.py", line 3095:
sage: Integer(3)._xgcd(24)
Expected:
(3, -15, 2)
Got:
(3, 1, 0)
**********************************************************************
File "/home/tabbott/.sage/tests/integer.py", line 3097:
sage: Integer(3)._xgcd(48)
Expected:
(3, -15, 1)
Got:
(3, 1, 0)
**********************************************************************
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---