Skip to content

Commit 3efe5ec

Browse files
eriks245vsht
authored andcommitted
fix colorSimplifyGeneric
1 parent d07d7e1 commit 3efe5ec

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

‎FeynCalc/SUN/SUNSimplify.m‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -702,12 +702,12 @@ Introducing SU(N) structure constants, this must be the last operation, since an
702702
SUNN (-1)^(Length[{r2}]+1) colorSimplifyGeneric[rest sunf[r2,r3,r1,c,d]];
703703

704704
(* f_2^abcd f^cde = N f^eab *)
705-
colorSimplifyGeneric[rest_. sunf2[c_, d_, a_SUNIndex, b_SUNIndex] sunf[r1___,a_SUNIndex,r2___,b_SUNIndex,r3___]] :=
706-
SUNN (-1)^(Length[{r2}]) colorSimplifyGeneric[rest sunf[r2,r3,r1,c,d]];
705+
colorSimplifyGeneric[rest_. sunf2[a_, b_, c_SUNIndex, d_SUNIndex] sunf[r1___,c_SUNIndex,r2___,d_SUNIndex,r3___]] :=
706+
SUNN (-1)^(Length[{r2}]) colorSimplifyGeneric[rest sunf[r2,r3,r1,a,b]];
707707

708708
(* f_2^abdc f^cde = - N f^eab *)
709-
colorSimplifyGeneric[rest_. sunf2[c_, d_, b_SUNIndex, a_SUNIndex] sunf[r1___,a_SUNIndex,r2___,b_SUNIndex,r3___]] :=
710-
SUNN (-1)^(Length[{r2}]+1) colorSimplifyGeneric[rest sunf[r2,r3,r1,c,d]];
709+
colorSimplifyGeneric[rest_. sunf2[a_, b_, d_SUNIndex, c_SUNIndex] sunf[r1___,c_SUNIndex,r2___,d_SUNIndex,r3___]] :=
710+
SUNN (-1)^(Length[{r2}]+1) colorSimplifyGeneric[rest sunf[r2,r3,r1,a,b]];
711711

712712
(* f_2^abcd f^ace = N/2 f^bde *)
713713
colorSimplifyGeneric[rest_. sunf2[a_SUNIndex, b_, c_SUNIndex, d_] sunf[r1___,a_SUNIndex,r2___,c_SUNIndex,r3___]] :=
@@ -721,19 +721,19 @@ Introducing SU(N) structure constants, this must be the last operation, since an
721721
colorSimplifyGeneric[rest_. sunf2[a_SUNIndex, b_, d_, c_SUNIndex] sunf[r1___,a_SUNIndex,r2___,c_SUNIndex,r3___]] :=
722722
SUNN/2 (-1)^(Length[{r2}]+1) colorSimplifyGeneric[rest sunf[b,d,r2,r3,r1]];
723723

724-
(* f_2^cbda f^ace = - N/2 f^bde *)
724+
(* f_2^cbda f^ace = N/2 f^bde *)
725725
colorSimplifyGeneric[rest_. sunf2[c_SUNIndex, b_, d_, a_SUNIndex] sunf[r1___,a_SUNIndex,r2___,c_SUNIndex,r3___]] :=
726726
SUNN/2 (-1)^(Length[{r2}]) colorSimplifyGeneric[rest sunf[b,d,r2,r3,r1]];
727727

728728
(* f_2^bacd f^ace = - N/2 f^bde *)
729729
colorSimplifyGeneric[rest_. sunf2[b_, a_SUNIndex, c_SUNIndex, d_] sunf[r1___,a_SUNIndex,r2___,c_SUNIndex,r3___]] :=
730730
SUNN/2 (-1)^(Length[{r2}]+1) colorSimplifyGeneric[rest sunf[b,d,r2,r3,r1]];
731731

732-
(* f_2^bcad f^ace = - N/2 f^bde *)
733-
colorSimplifyGeneric[rest_. sunf2[b_, a_SUNIndex, c_SUNIndex, d_] sunf[r1___,a_SUNIndex,r2___,c_SUNIndex,r3___]] :=
732+
(* f_2^bcad f^ace = N/2 f^bde *)
733+
colorSimplifyGeneric[rest_. sunf2[b_, c_SUNIndex, a_SUNIndex, d_] sunf[r1___,a_SUNIndex,r2___,c_SUNIndex,r3___]] :=
734734
SUNN/2 (-1)^(Length[{r2}]) colorSimplifyGeneric[rest sunf[b,d,r2,r3,r1]];
735735

736-
(* f_2^badc f^ace = - N/2 f^bde *)
736+
(* f_2^badc f^ace = N/2 f^bde *)
737737
colorSimplifyGeneric[rest_. sunf2[b_, a_SUNIndex, d_, c_SUNIndex] sunf[r1___,a_SUNIndex,r2___,c_SUNIndex,r3___]] :=
738738
SUNN/2 (-1)^(Length[{r2}]) colorSimplifyGeneric[rest sunf[b,d,r2,r3,r1]];
739739

‎Tests/SUN/SUNSimplify.test‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ SUNFIndex[k], SUNFIndex[l]])/2"},
279279
"(I/2)*CA^2*CF"},
280280
{"fcstSUNSimplify-ID75",
281281
"SUNSimplify[SUNF[a,b,c]SUNTF[{b,c},i,j]]",
282-
"(I/2)*CA*SUNTF[{SUNIndex[a]}, SUNFIndex[i], SUNFIndex[j]]"}
282+
"(I/2)*CA*SUNTF[{SUNIndex[a]}, SUNFIndex[i], SUNFIndex[j]]"},
283+
{"fcstSUNSimplify-ID76",
284+
"SUNSimplify[SUNF[g2,b,c] SUNF[b,e,d] SUNF[e,g1,h] SUNF[h,c,d]]",
285+
"(1/2)*CA^2*SUNDelta[SUNIndex[g2], SUNIndex[g1]]"},
286+
{"fcstSUNSimplify-ID77",
287+
"SUNSimplify[SUNF[g0,b,c] SUNF[b,e,d] SUNF[e,g1,h] SUNF[h,c,d]]",
288+
"(1/2)*CA^2*SUNDelta[SUNIndex[g0], SUNIndex[g1]]"}
283289
};
284290

0 commit comments

Comments
 (0)