7.8. Replacing TensorValues in expressions
ToValues Replace tensor values in a given expression
Replacing TensorValues in expressions
As we have seen, xCoba` does not provide an automatic tool for setting values (use Set or SetDelayed instead of rules), because this is potentially dangerous and removing the definitions would not be trivial. However, it is very simple to apply all the rules in TensorValues to a given expression
In[395]:=
In[396]:=
Out[396]=
In[397]:=
In[398]:=
Out[398]=
In[399]:=
Out[399]=
In[400]:=
Out[400]=
That expression has only the tensor T and so we get
In[401]:=
Out[401]=
Now the metric tensors are explicit and hence:
In[402]:=
Out[402]=
Created by Mathematica (May 16, 2008) |