]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/eja/euclidean_jordan_algebra.py
eja: convert another operator_matrix() test to operator().
[sage.d.git] / mjo / eja / euclidean_jordan_algebra.py
index 750b6c1c37460a704f83aeb62b66aaf4ce1ca952..9072a12e511b51dbeb64fe6c9e0336a0ab6d87fe 100644 (file)
@@ -1275,7 +1275,7 @@ class FiniteDimensionalEuclideanJordanAlgebra(FiniteDimensionalAlgebra):
             Our parent class defines ``left_matrix`` and ``matrix``
             methods whose names are misleading. We don't want them.
             """
-            raise NotImplementedError("use operator_matrix() instead")
+            raise NotImplementedError("use operator().matrix() instead")
 
         matrix = left_matrix
 
@@ -1591,13 +1591,13 @@ class FiniteDimensionalEuclideanJordanAlgebra(FiniteDimensionalAlgebra):
                 sage: x.subalgebra_generated_by().is_associative()
                 True
 
-            Squaring in the subalgebra should be the same thing as
-            squaring in the superalgebra::
+            Squaring in the subalgebra should work the same as in
+            the superalgebra::
 
                 sage: set_random_seed()
                 sage: x = random_eja().random_element()
                 sage: u = x.subalgebra_generated_by().random_element()
-                sage: u.operator_matrix()*u.vector() == (u**2).vector()
+                sage: u.operator()(u) == u^2
                 True
 
             """