X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;ds=sidebyside;f=check%2Fexam_clifford.cpp;h=68393673f78d4672432ee82d499e5cb6b05204ee;hb=3918e4767063fb45e5728bd9b3a09dd8ac30d055;hp=6262af8ae07fb63b8cfc873f3f3064f476c0c69f;hpb=7d870583a6bf21a2ffb7b6f051b702064623892e;p=ginac.git diff --git a/check/exam_clifford.cpp b/check/exam_clifford.cpp index 6262af8a..68393673 100644 --- a/check/exam_clifford.cpp +++ b/check/exam_clifford.cpp @@ -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; }