* 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
return 0;
}
-static unsigned color_check1(void)
+static unsigned color_check1()
{
// checks general identities and contractions of the structure constants
return result;
}
-static unsigned color_check2(void)
+static unsigned color_check2()
{
// checks general identities and contractions of the generators
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
return result;
}
-unsigned exam_color(void)
+unsigned exam_color()
{
unsigned result = 0;