]> www.ginac.de Git - ginac.git/blobdiff - check/exam_color.cpp
synced to 1.2 (typos, better ncmul::degree() and ::coeff())
[ginac.git] / check / exam_color.cpp
index 2190db8ed27e0a2920aa04424a0788b1ebd03a31..4d26a1e4151fc3c7076f92c740502725e86f1f97 100644 (file)
@@ -3,7 +3,7 @@
  *  Here we test GiNaC's color objects (su(3) Lie algebra). */
 
 /*
  *  Here we test GiNaC's color objects (su(3) Lie algebra). */
 
 /*
- *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2004 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -44,7 +44,7 @@ static unsigned check_equal_simplify(const ex &e1, const ex &e2)
        return 0;
 }
 
        return 0;
 }
 
-static unsigned color_check1(void)
+static unsigned color_check1()
 {
        // checks general identities and contractions of the structure constants
 
 {
        // checks general identities and contractions of the structure constants
 
@@ -78,7 +78,7 @@ static unsigned color_check1(void)
        return result;
 }
 
        return result;
 }
 
-static unsigned color_check2(void)
+static unsigned color_check2()
 {
        // checks general identities and contractions of the generators
 
 {
        // checks general identities and contractions of the generators
 
@@ -101,11 +101,13 @@ static unsigned color_check2(void)
        result += check_equal_simplify(e, 16 * color_ONE() / 9);
        e = color_T(a) * color_T(b) * color_T(c) * color_T(c) * color_T(b) *  color_T(a);
        result += check_equal_simplify(e, 64 * color_ONE() / 27);
        result += check_equal_simplify(e, 16 * color_ONE() / 9);
        e = color_T(a) * color_T(b) * color_T(c) * color_T(c) * color_T(b) *  color_T(a);
        result += check_equal_simplify(e, 64 * color_ONE() / 27);
+       e = color_T(a) * color_T(b) * color_T(c) * color_T(k) * color_T(a) * color_T(k) *  color_T(c) * color_T(b);
+       result += check_equal_simplify(e, -color_ONE() / 162);
 
        return result;
 }
 
 
        return result;
 }
 
-static unsigned color_check3(void)
+static unsigned color_check3()
 {
        // checks traces
 
 {
        // checks traces
 
@@ -126,7 +128,7 @@ static unsigned color_check3(void)
        return result;
 }
 
        return result;
 }
 
-unsigned exam_color(void)
+unsigned exam_color()
 {
        unsigned result = 0;
        
 {
        unsigned result = 0;