Cancelling equal terms

21 views
Skip to first unread message

Pavan Dharanipragada

unread,
Sep 10, 2024, 8:04:48 AMSep 10
to xAct Tensor Computer Algebra
Hello all,

I am replacing the metric by the metric plus a different tensor in the expression for Ricci scalar in the attached file, and trying to see the extra terms. But xAct is not cancelling equal terms, so I am left with a bunch of equal terms with opposite signs. Since the terms involve partial derivatives, I am unable to run ToCanonical on them. I am sure something simple can be done to solve this, but I am unable to see it. Please let me know your comments.


Pavan
ChangeinRicci.nb

Thomas Bäckdahl

unread,
Sep 10, 2024, 8:17:39 AMSep 10
to xa...@googlegroups.com

Hi!

I think you can use ToCanonical. You just have to be a bit more careful.The command
SetOptions[ToCanonical, UseMetricOnVBundle -> None]
stops it from moving indices up and down.

If you don't want to use ToCanonical, you can also try Expand and ScreenDollarIndices. If you really want to see what ScreenDollarIndices is doing I would set $PrePrint =.; to avoid the automatic ScreenDollarIndices before the display. If two terms have different dollar indices, they will not cancel automatically, but ToCanonical or even ScreenDollarIndices can sort that out.

Regards
Thomas

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/xact/13aa4c10-53db-4f91-8059-eee0a2ffacfcn%40googlegroups.com.

Pavan Dharanipragada

unread,
Sep 11, 2024, 5:53:36 AMSep 11
to xAct Tensor Computer Algebra
Thank you Thomas! ToCanonical worked for me.

Regards,
Pavan

Reply all
Reply to author
Forward
0 new messages