Hi Jolyon,
That looks very nice! I like how you tackle more advanced topics to explain basic features about xTensor; that way people will see how powerful it is. But allow me to promote some features of my xTras package that might come in handy for the cases you discuss :).
In section one you go through a bit of tensor manipulation to show that the 4D Lovelock tensor is zero. Alternatively, you one could have sufficed with the command
ConstructDDIs[RiemannCD[a, b, c, d] RiemannCD[e, f, g, h], IndexList[a, b]]
which constructs all dimensionally dependent identities that consist of contractions of two Riemanns and have two free indices. Of course, the whole point of your notebook is to go through the tensor manipulation business, but it might be mentioning as a shortcut.
Secondly, section three computes equations of motion of the metric, where you first need to perturb the action. xTras redefines the VarD command such that this isn't necessary; VarD[metric[-a,-b],CD] automatically gives the 'correct' equations of motion of the metric. Also, for the simplifying of the eom of the Gauss-Bonnet term xTras has the functions SortCovDsToDiv and CurvatureRelationsBianchi, which are used in the 'magic function' FullSimplification. Here's a 3 line derivation of the Gauss-Bonnet equations of motion:
GB = NoScalar@EulerDensity[CD]
eom = VarL[metric[-a, -b], CD][GB] // ContractMetric // ToCanonical
eom = FullSimplification[][eom]
Again, I guess the whole point of your tutorial is to go through all the smaller steps so people get a better feel of the various aspects of xTensor, but the lazy among us might welcome these shortcuts.
Though overall your tutorial looks very good! (And very long! How long did you take presenting all that material?)
Best,
Teake
> --
> You received this message because you are subscribed to the Google Groups "xAct Tensor Computer Algebra" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
xact+uns...@googlegroups.com (mailto:
xact+uns...@googlegroups.com).
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>