]> www.ginac.de Git - ginac.git/blobdiff - check/exam_clifford.cpp
Hm, what exactly changed here...?
[ginac.git] / check / exam_clifford.cpp
index dadd9e163b4334906e8f93f2331d3a2c7300fae6..287a600d10882700ac53a1e28098811f45327082 100644 (file)
@@ -107,7 +107,7 @@ static unsigned clifford_check3(void)
 
        symbol dim("D"), m("m"), q("q"), l("l"), ldotq("ldotq");
        varidx mu(symbol("mu"), dim), nu(symbol("nu"), dim), rho(symbol("rho"), dim),
-              sig(symbol("sig"), dim), kap(symbol("kap"), dim), lam(symbol("lam"), 4);
+              sig(symbol("sig"), dim), kap(symbol("kap"), dim), lam(symbol("lam"), dim);
        ex e;
 
        e = dirac_gamma(mu);
@@ -154,7 +154,7 @@ static unsigned clifford_check3(void)
        // non-cyclicity of order D-4 of gamma5 * S_6
        e = dirac_gamma5() * dirac_gamma(mu) * dirac_gamma(nu) * dirac_gamma(rho) * dirac_gamma(sig) * dirac_gamma(kap) * dirac_gamma(mu.toggle_variance())
          + dim * dirac_gamma5() * dirac_gamma(nu) * dirac_gamma(rho) * dirac_gamma(sig) * dirac_gamma(kap);
-       e = dirac_trace(e);
+       e = dirac_trace(e).simplify_indexed();
        e = (e / (dim - 4)).normal();
        result += check_equal(e, 8 * I * eps0123(nu, rho, sig, kap));
 
@@ -250,7 +250,7 @@ unsigned exam_clifford(void)
        result += clifford_check3();  cout << '.' << flush;
        result += clifford_check4();  cout << '.' << flush;
        result += clifford_check5();  cout << '.' << flush;
-       
+
        if (!result) {
                cout << " passed " << endl;
                clog << "(no output)" << endl;