]> www.ginac.de Git - ginac.git/blobdiff - check/exam_clifford.cpp
[BUGFIX] Reclaiming the memory allocated for static objects *is* necessary.
[ginac.git] / check / exam_clifford.cpp
index 6262af8ae07fb63b8cfc873f3f3064f476c0c69f..68393673f78d4672432ee82d499e5cb6b05204ee 100644 (file)
@@ -537,6 +537,19 @@ static unsigned clifford_check7(const ex & G, const symbol & dim)
        return result;
 }
 
+static unsigned clifford_check8()
+{
+       unsigned result = 0;
+
+       realsymbol a("a");
+       varidx mu(symbol("mu", "\\mu"), 1);
+
+       ex e = clifford_unit(mu, diag_matrix(lst(-1))), e0 = e.subs(mu==0);
+       result += ( exp(a*e0)*e0*e0 == -exp(e0*a) ) ? 0 : 1;
+
+       return result;
+}
+
 unsigned exam_clifford()
 {
        unsigned result = 0;
@@ -602,6 +615,8 @@ unsigned exam_clifford()
        result += clifford_check7(indexed(-2*minkmetric(), sy_symm(), xi, chi), dim); cout << '.' << flush;
        result += clifford_check7(-2*delta_tensor(xi, chi), dim); cout << '.' << flush;
 
+       result += clifford_check8(); cout << '.' << flush;
+
        return result;
 }