Skip to content

Prefactors in scalar products #173

Answered by vsht
mhutt21 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

for that you need to use FCVariable

https://feyncalc.github.io/FeynCalcBookDev/FCVariable.html

DataType[a, FCVariable] = True;
DataType[b, FCVariable] = True;

ExpandScalarProduct[SP[P,Q]/.P->a P1 +b P2]
StandardForm[%]
(*a Pair[Momentum[P1], Momentum[Q]] + b Pair[Momentum[P2], Momentum[Q]]*)

Cheers,
Vladyslav

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mhutt21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants