I want to display the values of a table with superscirpts and subscripts in a list as bellow.

      Superscript[Subscript[R, i], j] = value^i_j
      Superscript[Subscript[R, i], l] = value^i_l

A list with columns is also fine.

I run

RR := Table[Flatten[ToString[ R[[i, j]], Ricci[[i, j]] }] , {i, 1, n}, {j, 1, n}]]


Which displays symbols like



 Subscript[R, i]^j

in place of

R[[i, j]]

does not display the upper index R^1.

Moreover, using Subscript[R, i j] reads the product "i*j," while I want to avoid the comma in

 Subscript[R, i,j]

Also, I tried

  For[i := 1, i < 5, i++,
   Print[Subscript[R, i,i], "=", ricci[[i, i]]]]

How can I get rid of the comma?

Subscript[R, Row[{#, " ", #}]] & /@ Range@5

enter image description here

| improve this answer | |

Try this:

    Table[Superscript[Subscript[R, i], j], {i, 1, 3}, {j, 1, 
   3}] // MatrixForm

enter image description here

Have fun!

| improve this answer | |
  • $\begingroup$ Sorry, I crafted my question poorly. It is better now. $\endgroup$ – superAnnoyingUser Nov 25 '15 at 23:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.