Generating tensor indices depending on a parameter

50 views
Skip to first unread message

Sergei Savin

unread,
Sep 24, 2016, 12:34:41 PM9/24/16
to xAct Tensor Computer Algebra
Hi, 

Probably the question is very stupid but I could not find an answer. 

I need to work with the tensor with indices k_1 ... k_n, s_1 .... s_n. This is quite important since the expression for this tensor will be written via k_i and s_i where i=1...n, n is also a variable. 
I know that I can generate indices via GetIndicesOfVBundle but 
1. it gives me indices k_1,...,k_n, s_{n+1} ... s_{2n}
2. I cannot loop over i and use k_i or s_i.
I can overcome this difficulty introducing additional lists of indices and so on. 

But is it any way to do it straightforward?

Thanks in advance.

Alfonso Jacinto García Parrado Gómez Lobo

unread,
Sep 27, 2016, 6:53:49 AM9/27/16
to Sergei Savin, xAct Tensor Computer Algebra
Hi,

as far as I know abstract indices in xTensor can only be atomic Mathematica symbols, so there's in principle no straightforward way of declaring the sort of abstract indices you need. I attach a notebook where I illustrate how to introduce these indices in a non-straightforward fashion but I haven't fully tested the code in all situations and I cannot guarantee that it is going to work in general.

Regards,

Alfonso.

From: xa...@googlegroups.com [xa...@googlegroups.com] on behalf of Sergei Savin [sps...@gmail.com]
Sent: Saturday, September 24, 2016 3:00 PM
To: xAct Tensor Computer Algebra
Subject: [xAct: 1874] Generating tensor indices depending on a parameter

--
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.
For more options, visit https://groups.google.com/d/optout.
ArbitraryIndices.nb
Reply all
Reply to author
Forward
0 new messages