posftix notation for valence 0 tensors

47 views
Skip to first unread message

David Kofroň

unread,
Jun 30, 2023, 3:48:40 PM6/30/23
to xa...@googlegroups.com
Dear xAct developers,
 a student asked me to help him with the following problem:

 It is possible to choose a postfix notation for covariant derivative by the assignment
$CovDFormat = "Postfix";
 alas, this does not work for valence 0 tensors, even in the latest xTensor version 1.2.0. See the minimal notebook attached, the very last line.

 It would have been nice, for the sake of consistency, to have all the derivatives in the postfix notation.
 Any help would be appreciated; but, being merely an aesthetic problem, it does not deserve too much attention (at least during the summer vacation period :) ).

 best regards
David Kofron
postfix.nb

Thomas Bäckdahl

unread,
Jun 30, 2023, 4:19:11 PM6/30/23
to xa...@googlegroups.com
Hi!

This seems to be a bug. I usually don't use postfix notation, so I had not noticed.

There seems to be something missing in the function MakeBoxesCovD in xTensor.
Adding the following line to your code seems to fix the problem

xAct`xTensor`Private`MakeBoxesCovD[der_[i_ /; Head[i] =!= Dir][head_],"Postfix"] :=
  Block[{$WarningFrom = "CovD Formatting"}, SubsuperscriptBox[head, #1, #2] & @@xAct`xTensor`Private`AddIndex[{"", ""}, i, der]];

I hope Jose can add something like this to the next release.

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/CAHMOOA9xwibnSPpeHgqqyy3uATDQBYKLY8n-M34UzOd55TJMkg%40mail.gmail.com.

Ron Riegert

unread,
Jul 1, 2023, 2:02:39 PM7/1/23
to xAct Tensor Computer Algebra
I asked about this almost 3 years ago, but never got a response:

Jose

unread,
Jul 12, 2023, 9:42:27 PM7/12/23
to xAct Tensor Computer Algebra
Hi,

Yes, I'll fix this.

Thanks all for the reports and suggested fix.

Cheers,
Jose.
Reply all
Reply to author
Forward
0 new messages