Skip to content

Loop integrals with odd number of loop momenta #100

Answered by magnunm
jruizvid asked this question in Q&A
Discussion options

You must be logged in to vote

The only question here which really has to do with FeynCalc is whether there is built in functionality to do this, so I will address that first.
I don't think it has, and I don't think it needs it, as this is already covered quite conveniently by Mathematica itself.

If I understand you correctly you want to remove a term if and only if there is an odd number of the momenta k1, k2 in the numerator. If so, here is a possible solution: (test is your expression)

replaceAllRestricted[expr_, rules_List, heads_List] := 
  expr /. Join[a : Blank[#] :> a & /@ heads, rules];
replaceAllRestricted[
  test, 
  {Momentum[k1, D] -> a * Momentum[k1, D], Momentum[k2, D] -> a * Momentum[k2, D]},
  {FeynAmp…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jruizvid
Comment options

@jruizvid
Comment options

@vsht
Comment options

Answer selected by jruizvid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants