]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: fix some tests that broke with the gram-schmidt commit.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 29 Aug 2019 15:30:02 +0000 (11:30 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 29 Aug 2019 15:30:02 +0000 (11:30 -0400)
mjo/eja/eja_subalgebra.py
mjo/eja/eja_utils.py

index fee718b14ff32d96a00e7b8c9f1e8ed09066d733..9326793f9dfd1a1619241c3dcd2e5bb8dcda1351 100644 (file)
@@ -241,7 +241,7 @@ class FiniteDimensionalEuclideanJordanElementSubalgebra(FiniteDimensionalEuclide
 
             sage: J = RealSymmetricEJA(3)
             sage: x = sum( i*J.gens()[i] for i in range(6) )
-            sage: K = FiniteDimensionalEuclideanJordanElementSubalgebra(x)
+            sage: K = FiniteDimensionalEuclideanJordanElementSubalgebra(x,False)
             sage: [ K(x^k) for k in range(J.rank()) ]
             [f0, f1, f2]
 
@@ -348,7 +348,7 @@ class FiniteDimensionalEuclideanJordanElementSubalgebra(FiniteDimensionalEuclide
 
             sage: J = RealSymmetricEJA(3)
             sage: x = J.monomial(0) + 2*J.monomial(2) + 5*J.monomial(5)
-            sage: K = FiniteDimensionalEuclideanJordanElementSubalgebra(x)
+            sage: K = FiniteDimensionalEuclideanJordanElementSubalgebra(x,False)
             sage: K.vector_space()
             Vector space of degree 6 and dimension 3 over...
             User basis matrix:
index 8f2d8f32b0dd2e2cf6e693166688d6be1f3ea999..d486b4c604723b2a3e8544c2cf2644edb733d713 100644 (file)
@@ -24,7 +24,7 @@ def gram_schmidt(v):
         sage: v3 = vector(QQ,(2,1,-1))
         sage: v = [v1,v2,v3]
         sage: u = gram_schmidt(v)
-        sage: [ u_i.inner_product(u_i).sqrt() == 1 for u_i in u ]
+        sage: all( u_i.inner_product(u_i).sqrt() == 1 for u_i in u )
         True
         sage: u[0].inner_product(u[1]) == 0
         True