X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fexam_color.cpp;h=cbc99462ef676765d8a2501da44830972871a2ab;hp=2190db8ed27e0a2920aa04424a0788b1ebd03a31;hb=e2627379c98aeafae903cc2f04bdbdc9defa34f7;hpb=4dc267ddbec7fcc1ba15bf0d60d72a346c9efb26 diff --git a/check/exam_color.cpp b/check/exam_color.cpp index 2190db8e..cbc99462 100644 --- a/check/exam_color.cpp +++ b/check/exam_color.cpp @@ -3,7 +3,7 @@ * 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-2003 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 @@ -44,7 +44,7 @@ static unsigned check_equal_simplify(const ex &e1, const ex &e2) return 0; } -static unsigned color_check1(void) +static unsigned color_check1() { // checks general identities and contractions of the structure constants @@ -78,7 +78,7 @@ static unsigned color_check1(void) return result; } -static unsigned color_check2(void) +static unsigned color_check2() { // 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); + 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; } -static unsigned color_check3(void) +static unsigned color_check3() { // checks traces @@ -126,7 +128,7 @@ static unsigned color_check3(void) return result; } -unsigned exam_color(void) +unsigned exam_color() { unsigned result = 0;