>The exchange to tr = TR[Calc[#]]&; doesn't help. >Expressions multiplied by "real" 0 occur in processing >large expressions involving lots of terms, so it would be >extremely hard to hunt all instances of 0. which occur as >cancellations of terms with "real" coefficients like >0.5*GS[p]-0.5*GS[p]. Is there an easy way to get rid of >this annoying error and get the correct answer for >Tr[0.]=0?
> One more question, why Tr doesn't return 0?
This is a knows strange feature of Mathematica !
Or, if you feel better not modifying Times:
However, this will not always work (since FCI is not
called always internally).
Tr not giving 0 :
TR will give 0.
The trouble is that Tr has become a Mathematica kernel function in version 4 or so, but Tr existed before in FeynCalc. So I Unprotect[Tr] and call TR, but only if there is DiracGamma etc. in it (do
to see what I did).
Feel free to add
This archive was generated by hypermail 2b29 : 02/23/17-05:00:01 PM Z CET