Replies: 1 comment 6 replies
-
I've been thinking about your suggestions, but currently I don't see an obvious way to implement them:
One could add an info message when terms lacking polarization vectors are encountered, though. On the other hand, it is also not entirely clear to me where such issues may occur. Why would someone want to apply
To be able to catch cases that you mention one would have to multiply everything out and count the number of polarization vectors |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I know the FeynCalc documentation (on the master branch) says, for
DoPolarizationSums[exp, k, ...]
,exp
must contain a valid pair of the polarisation vectors, so the user is responsible for passing a proper expression (that's why I don't post this as a bug report). But I think it would be safer and user-friendly if the following cases could be handled:DoPolarizationSums[exp, p]
shouldn't changeexp
whenp
is not inexpr
, and should return justexpr
.Current behaviour (v9.3.1):
gives
Forbid applying
DoPolarizationSums
to an invalid expression, e.g., abort with showingDoPolarizationSums::failmsg
, cf. Forbid DoPolarizationSums with negative momenta #137.Current behaviour (v9.3.1):
gives
Beta Was this translation helpful? Give feedback.
All reactions