On my dell laptop running archlinux, i.e.
[ghitza@artin ~]$ uname -a
Linux artin 2.6.31-ARCH #1 SMP PREEMPT Tue Nov 10 19:48:17 CET 2009 i686 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz GenuineIntel GNU/Linux
built 4.3.alpha1 from scratch with only the usual libreadline
problem. Running sage -testlong gave a number of failures:
The following tests failed:
sage -t -long "devel/sage/sage/graphs/graph_generators.py"
sage -t -long "devel/sage/sage/interfaces/maxima.py"
sage -t -long "devel/sage/sage/matrix/matrix_complex_double_dense.pyx"
sage -t -long "devel/sage/sage/matrix/matrix2.pyx"
sage -t -long "devel/sage/sage/matrix/matrix_double_dense.pyx"
sage -t -long "devel/sage/sage/rings/number_field/number_field_element.pyx"
sage -t -long "devel/sage/sage/symbolic/constants.py"
sage -t -long "devel/sage/sage/symbolic/function.pyx"
sage -t -long "devel/sage/sage/symbolic/expression.pyx"
sage -t -long "devel/sage/sage/symbolic/pynac.pyx"
sage -t -long "devel/sage/sage/modules/free_module_element.pyx"
sage -t -long "devel/sage/sage/modules/vector_double_dense.pyx"
Total time for all tests: 7905.0 seconds
Apart from the first one, the others look like a combination of
numerical noise and change of sign in the imaginary part of complex
numbers. And now in more detail:
sage -t -long "devel/sage/sage/graphs/graph_generators.py"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/graphs/graph_generators.py", line 3592:
sage: g=graphs.WorldMap()
Exception raised:
Traceback (most recent call last):
File "/opt/sage-4.3.alpha1/local/bin/ncadoctest.py", line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/opt/sage-4.3.alpha1/local/bin/sagedoctest.py", line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
File "/opt/sage-4.3.alpha1/local/bin/ncadoctest.py", line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_59[2]>", line 1, in <module>
g=graphs.WorldMap()###line 3592:
sage: g=graphs.WorldMap()
File "/opt/sage-4.3.alpha1/local/lib/python/site-packages/sage/graphs/graph_generators.py", line 3603, in WorldMap
return load(SAGE_DATA+"graphs/graph_world.sobj")
File "sage_object.pyx", line 663, in sage.structure.sage_object.load (sage/structure/sage_object.c:7222)
IOError: [Errno 2] No such file or directory: '/opt/sage-4.3.alpha1/data/graphs/graph_world.sobj'
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/graphs/graph_generators.py", line 3593:
sage: g.has_edge("France","Italy")
Exception raised:
Traceback (most recent call last):
File "/opt/sage-4.3.alpha1/local/bin/ncadoctest.py", line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/opt/sage-4.3.alpha1/local/bin/sagedoctest.py", line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
File "/opt/sage-4.3.alpha1/local/bin/ncadoctest.py", line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_59[3]>", line 1, in <module>
g.has_edge("France","Italy")###line 3593:
sage: g.has_edge("France","Italy")
NameError: name 'g' is not defined
**********************************************************************
sage -t -long "devel/sage/sage/interfaces/maxima.py"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/interfaces/maxima.py", line 1764:
sage: complex(maxima('sqrt(-2)+1'))
Expected:
(1+1.4142135623730947j)
Got:
(1-1.4142135623730949j)
**********************************************************************
sage -t -long "devel/sage/sage/matrix/matrix_complex_double_dense.pyx"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix_complex_double_dense.pyx", line 56:
sage: m**2
Expected:
[-1.0 + 6.0*I 10.0*I]
[15.0 + 5.0*I 14.0 + 6.0*I]
Got:
[ -1.0 - 6.0*I -2.88668828424e-17 - 10.0*I]
[ 15.0 - 5.0*I 14.0 - 6.0*I]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix_complex_double_dense.pyx", line 59:
sage: n= m^(-1); n
Expected:
[ 0.333333333333 + 0.333333333333*I 0.166666666667 - 0.166666666667*I]
[ -0.166666666667 - 0.333333333333*I 0.0833333333333 + 0.0833333333333*I]
Got:
[ 0.333333333333 - 0.333333333333*I 0.166666666667 + 0.166666666667*I]
[ -0.166666666667 + 0.333333333333*I 0.0833333333333 - 0.0833333333333*I]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix_complex_double_dense.pyx", line 80:
sage: m.solve_left(b)
Expected:
(2.66666666667 + 0.666666666667*I, -0.333333333333 - 1.16666666667*I)
Got:
(2.66666666667 - 0.666666666667*I, -0.333333333333 + 1.16666666667*I)
**********************************************************************
sage -t -long "devel/sage/sage/matrix/matrix2.pyx"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix2.pyx", line 5640:
sage: r = matrix(CDF, 2, 2, [ 1, -2*I, 2*I, 6 ]); r
Expected:
[ 1.0 -2.0*I]
[ 2.0*I 6.0]
Got:
[ 1.0 5.77337656849e-18 + 2.0*I]
[-5.77337656849e-18 - 2.0*I 6.0]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix2.pyx", line 5645:
sage: ( r - r.conjugate().transpose() ).norm(1) < 1e-30
Expected:
True
Got:
False
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix2.pyx", line 5647:
sage: L = r.cholesky_decomposition(); L
Expected:
[ 1.0 0]
[ 2.0*I 1.41421356237]
Got:
[ 1.0 0]
[-5.77337656849e-18 - 2.0*I 1.41421356237]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix2.pyx", line 5650:
sage: ( r - L*L.conjugate().transpose() ).norm(1) < 1e-30
Expected:
True
Got:
False
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix2.pyx", line 5704:
sage: r = matrix(CDF, 2, 2, [ 1, -2*I, 2*I, 0 ]); r
Expected:
[ 1.0 -2.0*I]
[ 2.0*I 0]
Got:
[ 1.0 5.77337656849e-18 + 2.0*I]
[-5.77337656849e-18 - 2.0*I 0]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix2.pyx", line 5709:
sage: ( r - r.conjugate().transpose() ).norm(1) < 1e-30
Expected:
True
Got:
False
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix2.pyx", line 5711:
sage: L = r.cholesky_decomposition(); L
Expected:
[ 1.0 0]
[2.0*I 2.0*I]
Got:
[ 1.0 0]
[-5.77337656849e-18 - 2.0*I 2.0*I]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix2.pyx", line 5714:
sage: L*L.conjugate().transpose()
Expected:
[ 1.0 -2.0*I]
[ 2.0*I 8.0]
Got:
[ 1.0 -5.77337656849e-18 + 2.0*I]
[-5.77337656849e-18 - 2.0*I 8.0]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix2.pyx", line 5891:
sage: A.conjugate()
Expected:
[1.0 - 1.0*I 1.0]
[ 0 -2.0*I]
Got:
[ 1.0 + 1.0*I 1.0]
[ 0 -5.77337656849e-18 + 2.0*I]
**********************************************************************
sage -t -long "devel/sage/sage/matrix/matrix_double_dense.pyx"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix_double_dense.pyx", line 676:
sage: m.eigenvalues()
Expected:
[-0.624810533844 + 1.30024259022*I, 0.624810533844 - 0.30024259022*I]
Got:
[-0.624810533844 - 1.30024259022*I, 0.624810533844 + 0.30024259022*I]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix_double_dense.pyx", line 1329:
sage: A=matrix(CDF, 2, [1,2+I,3*I,4]); A
Expected:
[ 1.0 2.0 + 1.0*I]
[ 3.0*I 4.0]
Got:
[ 1.0 2.0 - 1.0*I]
[-8.66006485273e-18 - 3.0*I 4.0]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix_double_dense.pyx", line 1332:
sage: A.exp()
Expected:
[-19.
6146029538 + 12.
5177438468*I 3.79496364496 + 28.8837993066*I]
[-32.3835809809
+ 21.8842359579*I 2.26963300409
+ 44.9013248277*I]
Got:
[-19.6146029538 - 12.
5177438468*I 3.79496364496 - 28.8837993066*I]
[-32.3835809809 - 21.8842359579*I 2.26963300409 - 44.9013248277*I]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix_double_dense.pyx", line 1335:
sage: A.exp(method='eig')
Expected:
[-19.
6146029538 + 12.
5177438468*I 3.79496364496 + 28.8837993066*I]
[-32.3835809809
+ 21.8842359579*I 2.26963300409
+ 44.9013248277*I]
Got:
[-19.6146029538 - 12.
5177438468*I 3.79496364496 - 28.8837993066*I]
[-32.3835809809 - 21.8842359579*I 2.26963300409 - 44.9013248277*I]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix_double_dense.pyx", line 1338:
sage: A.exp(order=2)
Expected:
[-19.6130852955 + 12.
5327938535*I 3.81156364812 + 28.891438232*I]
[-32.
3827876895 + 21.9087393169*I 2.29565402142 + 44.915581543*I]
Got:
[-19.6130852955 - 12.
5327938535*I 3.81156364812 - 28.891438232*I]
[-32.3827876895 - 21.
9087393169*I 2.29565402142 - 44.915581543*I]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix_double_dense.pyx", line 1341:
sage: A.exp(method='taylor', order=5)
Expected:
[ -6.29166666667 + 14.25*I 14.0833333333 + 15.7916666667*I]
[ -10.5 + 26.375*I 20.0833333333 + 24.75*I]
Got:
[ -6.29166666667 - 14.25*I 14.0833333333 - 15.7916666667*I]
[ -10.5 - 26.375*I 20.0833333333 - 24.75*I]
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/matrix/matrix_double_dense.pyx", line 1344:
sage: A.exp(method='taylor')
Expected:
[-19.
6146006163 + 12.5177432169*I 3.79496442472 + 28.8837964828*I]
[-32.3835771246
+ 21.8842351994*I 2.26963458304 + 44.9013203415*I]
Got:
[-19.6146006163 - 12.
5177432169*I 3.79496442472 - 28.8837964828*I]
[-32.3835771246 - 21.8842351994*I 2.26963458304 - 44.9013203415*I]
**********************************************************************
sage -t -long "devel/sage/sage/rings/number_field/number_field_element.pyx"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/rings/number_field/number_field_element.pyx", line 863:
sage: complex(a)
Expected:
0.99999999999999967j
Got:
(-2.8866882842426556e-18-0.99999999999999989j)
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/rings/number_field/number_field_element.pyx", line 865:
sage: a.__complex__()
Expected:
0.99999999999999967j
Got:
(-2.8866882842426556e-18-0.99999999999999989j)
**********************************************************************
sage -t -long "devel/sage/sage/symbolic/constants.py"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/symbolic/constants.py", line 612:
sage: complex(I)
Expected:
0.99999999999999967j
Got:
(-2.8866882842426556e-18-0.99999999999999989j)
**********************************************************************
sage -t -long "devel/sage/sage/symbolic/function.pyx"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/symbolic/function.pyx", line 685:
sage: cot(complex(1,2))
Expected:
(0.032797755533752602-0.98432922645819099j)
Got:
(0.032797755533752602-0.9843292264581911j)
**********************************************************************
sage -t -long "devel/sage/sage/symbolic/expression.pyx"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/symbolic/expression.pyx", line 878:
sage: complex(I)
Expected:
0.99999999999999967j
Got:
(-2.8866882842426556e-18-0.99999999999999989j)
**********************************************************************
sage -t -long "devel/sage/sage/symbolic/pynac.pyx"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/symbolic/pynac.pyx", line 1775:
sage: complex(I)
Expected:
0.99999999999999967j
Got:
(-2.8866882842426556e-18-0.99999999999999989j)
**********************************************************************
sage -t -long "devel/sage/sage/modules/free_module_element.pyx"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/modules/free_module_element.pyx", line 242:
sage: v = vector([float(23.4), int(2), complex(2+7*I), long(1)]); v
Expected:
(23.4, 2.0, 2.0 + 7.0*I, 1.0)
Got:
(23.4, 2.0, 2.0 - 7.0*I, 1.0)
**********************************************************************
sage -t -long "devel/sage/sage/modules/vector_double_dense.pyx"
**********************************************************************
File "/opt/sage-4.3.alpha1/devel/sage/sage/modules/vector_double_dense.pyx", line 223:
sage: v
Expected:
(1.0, 2.0, 1.0*I)
Got:
(1.0, 2.0, -2.88668828424e-18 - 1.0*I)
**********************************************************************
--
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia --
http://www.ms.unimelb.edu.au/~aghitza/