0
{Subscript[g, 1],Subscript[e, 1]}\[TensorProduct]{Subscript[g, 2],Subscript[e, 2]}\[TensorProduct]{Subscript[g, 3],Subscript[e, 3]}

I am expecting answer like ...

{{{Subscript[g, 1] Subscript[g, 2] Subscript[g, 3], 
 Subscript[g, 1] Subscript[g, 2] Subscript[e, 3]}, { 
 Subscript[g, 1] Subscript[e, 2] Subscript[g, 3], 
 Subscript[g, 1] Subscript[e, 2] Subscript[e, 3] }}, {{Subscript[e, 
 1] Subscript[g, 2] Subscript[g, 3], 
Subscript[e, 1] Subscript[g, 2] Subscript[e, 3] }, {Subscript[e, 1]
  Subscript[e, 2] Subscript[g, 3], 
Subscript[e, 1] Subscript[e, 2] Subscript[e, 3]}}}

Why it change the sequence in the product?

santosh
  • 603
  • 3
  • 11

1 Answers1

2

Any product gets reordered alphabetically by Mathematica, apparently. Try entering g*e and e*g, and you'll see they are both reordered to e g, which works just fine when all multiplications are commutative.

If you really want the g terms to come before the e terms, then you might find some of the solutions here to be of use. Conversely, if you just use h or any other letter after g in place of e then that also solves your problem I think.

Jason B.
  • 68,381
  • 3
  • 139
  • 286