Hai,
I have a problem defining a new function.
I am using Cadabra for perturbation analysis in which I want to calculate higher-order perturbation terms. I have to define the result of each order term as independent tensors i.e, I have
Teffμν=T(0)μν+ϵT(1)μν+ϵ2T(2)μν+ϵ3T(3)μν.
then I redefined the equation as the form
T(eff)μν=a0T(0)μν+a1T(1)μν+a2T(2)μν+a3T(3)μν.
I would like to obtain the T0μν, T1μν, T2μν and T3μν by substituting a0=a2=a3=0 like conditions, for which have used the command as
Ex:=T_{\mu \nu}^(eff)=a^{0} T_{\mu \nu}^(0)
+a^{1} T_{\mu \nu}^(1)
+a^{2} T_{\mu \nu}^(2)
+a^{3}T_{\mu \nu}^(3);
T_{\mu \nu}^{0}:=substitute(Ex,$a^{1}->0,a^{2}->0,a^{3}->0$);
T_{\mu \nu}^{1}:=substitute(Ex,$a^{0}->0,a^{2}->0,a^{3}->0$);
T_{\mu \nu}^{2}:=substitute(Ex,$a^{0}->0,a^{1}->0,a^{3}->0$);
T_{\mu \nu}^{3}:=substitute(Ex,$a^{0}->0,a^{1}->0,a^{2}->0$);
But the results are showing the same. How can I rectify it?