Some time ago, our community generally believed that one should avoid operating indexed variables such as Subscript[a,1].
I remember to have several times adviced somebody to use a1
instead. Indeed, in the past, I noticed that algebraic calculations with indexed variables sometimes return erroneous results.
However, times are changing. Presently, the results of the indexed algebra seem to be correct.
On the other hand, calculations with indexed variables are very convenient for those who make vector and tensor calculus. The convenience is in the closeness of such an indexed notation to the traditional indexed tensor notation. In this case, it is easier to see the results. For this reason, they are less prone to errors.
My questions: Did you still notice errors in any symbolic operations with indexed variables? Do you know other pitfalls related to them? Could you kindly give examples? Do you know the reasons for these errors, if any?
Edit: From the response of @yarchik one can see that he can expect problems with simplification. Discussion here shows that it is most probably due to the fact that the TreeForm
of the indexed variable already exhibits several leaves. As the result, the LeafCount
gives a different result with respect to the plane one.
Then the next question pops up: Is simplification the only problem showing up with the indexed variables? Can other then Simplify
operations give errors when performed with the indexed variables?