- 3,762
- 297
I know that this might not be the best forum for the question but I am sure people here can help.
I want to do some simple tensor contraction using Maple or Mathematica. The calculation is simple but extremely long. All I want is to teach Maple/Mathematica to do tensor contraction without using explicit 4x4 matrices or four-vectors. For example, I want Maple/Mathematica to recognize that \eta_{\alpha \beta} q^\beta must be replaced by q_\alpha . Or that \eta_{\mu \nu} \eta^{\mu \alpha} must be replaced by \eta^\alpha_\nu or that \eta_{\mu \nu} \eta^{\mu \nu} = 4 and so on.
The calculation involves hundreds of terms (it is in the context of linearized GR quantized as an effective field theory).
I would highly appreciate if someone could tell me how to tell Maple/Mathematica to do certain substitutions like this.
Patrick
I want to do some simple tensor contraction using Maple or Mathematica. The calculation is simple but extremely long. All I want is to teach Maple/Mathematica to do tensor contraction without using explicit 4x4 matrices or four-vectors. For example, I want Maple/Mathematica to recognize that \eta_{\alpha \beta} q^\beta must be replaced by q_\alpha . Or that \eta_{\mu \nu} \eta^{\mu \alpha} must be replaced by \eta^\alpha_\nu or that \eta_{\mu \nu} \eta^{\mu \nu} = 4 and so on.
The calculation involves hundreds of terms (it is in the context of linearized GR quantized as an effective field theory).
I would highly appreciate if someone could tell me how to tell Maple/Mathematica to do certain substitutions like this.
Patrick