Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • $\begingroup$ Is there are way to use this package to perform the calculation without specifying the variables that will be replaced a priori, simply to replace repeated variables? For example it seems like it would be unwieldy to specify the variables when used on the longer input I posted. Alternatively, I could just apply march's code commented under the OP to get a common set of variables and then use this package if what I'm asking isn't possible. $\endgroup$ Commented Feb 27, 2017 at 22:22
  • $\begingroup$ I'm a little confused what you're asking. All I've done in this example is write out your expression in the syntax expected by xAct. I haven't told it which dummy indices to rename, it figures that out on its own. (The DefManifold statement is just saying that the indices listed belong to a manifold which I've called M; you need to define a manifold before you can define tensors on it). The code may make more sense if you read a bit of the xTensor manual. It does require you to be a bit more methodical, and define things like manifolds and tensors in advance. $\endgroup$ Commented Feb 27, 2017 at 22:54