Hi,
I am trying to assign a value to a variable (g). This variable has a subscript composed of two more variables (j,k) separated by an invisible comma. J and k are used for indexing purposes. It seems that Mathematica can’t assign a value (3 for example) to the indexed g. Or did I do something wrong?
Thanks for the fast replies. I didn’t find any hint to this in the Mathematica documentations about this issue. And of course, I didn’t know either that I hit a “hot topic” by chance. Anyways, the thing is that I am trying to calculate Christoffel symbols for some coordination conversions. The subscripts and the superscripts are essential in the classical form of the equations and they keeps messing up my calculations. It seems that I have to find away around those trouble makers.
The only problem is that Subscript[] doesn’t accept the invisible comma. (I’ll leave that explanation for the experts). With a “visible” comma the code works as expected.
with a value of 3 for the expression (but you didn’t assign it to anything).
Symbols formatted with visible or invisible commas in the subscript are the same symbol. Your other code should work.
I used matrices instead of Subscript indexing. It worked as it should. Then I read your comment about the subject. And I tried the code with a visible comma as you suggested and it worked perfectly. My formulas should look now like the classical forms.