FeynCalc / feyncalc

Mathematica package for algebraic calculations in elementary particle physics.
https://feyncalc.github.io
GNU General Public License v3.0
317 stars 89 forks source link

Problem with Contract[exp1,exp2] #17

Closed kirtimaan closed 7 years ago

kirtimaan commented 7 years ago

screenshot from 2016-11-21 14-15-02

Screen shot of mathematica notebook showing the problem with Contract.

Contract[exp1,exp2] != Contract[exp2,exp1]

vsht commented 7 years ago

You are using wrong syntax. Contract[exp1,exp2] is meant for internal use only, not for end-users. What you should use is Contract[expr,], e.g.

Contract[(MT[a, b] FV[p, mu] FVD[q, nu] +  MT[mu, nu] FV[p, a] FV[q, b]) MT[mu, nu]]
Contract[(MT[a, b] FV[p, mu] FVD[q, nu] +  MT[mu, nu] FV[p, a] FV[q, b]) MT[a, b]]

See also https://feyncalc.github.io/FeynCalcBook/ref/Contract.html

kirtimaan commented 7 years ago

Thanks, This should be updated in the FeynCalc reference which states the following "Contract[exp1, exp2] contracts (exp1*exp2), where exp1 and exp2 may be larger products of sums of metric tensors and 4-vectors." --https://feyncalc.org/FeynCalcBook/Contract/index.html

vsht commented 7 years ago

Actually, the link that I provided is the updated reference:

https://feyncalc.github.io/reference

"FeynCalcBook" is the outdated one that is kept online for legacy reasons.

Am 21.11.2016 um 21:41 schrieb kirtimaan:

Thanks, This should be updated in the FeynCalc reference which states the following "Contract[exp1, exp2] contracts (exp1*exp2), where exp1 and exp2 may be larger products of sums of metric tensors and 4-vectors." --https://feyncalc.org/FeynCalcBook/Contract/index.html

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FeynCalc/feyncalc/issues/17#issuecomment-262060877, or mute the thread https://github.com/notifications/unsubscribe-auth/AG8h9Fcu1h0pZCCb3BTQ56RZQSGBFje-ks5rAgIFgaJpZM4K4li6.