]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: ensure that we can construct RealSymmetricEJA over AA and RR.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 29 Aug 2019 23:08:33 +0000 (19:08 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 29 Aug 2019 23:08:33 +0000 (19:08 -0400)
mjo/eja/eja_algebra.py

index 3cb7467119f2f7aabda97a90d243e448164b3529..5679254c37f173809d55922bcaf0b8fbc0f40ac2 100644 (file)
@@ -1020,6 +1020,7 @@ class MatrixEuclideanJordanAlgebra(FiniteDimensionalEuclideanJordanAlgebra):
         Xu = cls.real_unembed(X)
         Yu = cls.real_unembed(Y)
         tr = (Xu*Yu).trace()
+
         if tr in RLF:
             # It's real already.
             return tr
@@ -1074,6 +1075,14 @@ class RealSymmetricEJA(RealMatrixEuclideanJordanAlgebra, KnownRankEJA):
         sage: e2*e2
         e2
 
+    In theory, our "field" can be any subfield of the reals::
+
+        sage: RealSymmetricEJA(2, AA)
+        Euclidean Jordan algebra of dimension 3 over Algebraic Real Field
+        sage: RealSymmetricEJA(2, RR)
+        Euclidean Jordan algebra of dimension 3 over Real Field with
+        53 bits of precision
+
     TESTS:
 
     The dimension of this algebra is `(n^2 + n) / 2`::