I have expression like this:
expr = xuyz;
Head[expr] = xuyz
But I wanted the product of four factors, so it should have been written as
x u y z, because Mathematica understands multiplication of four single-character variables in these two ways only.
So I need to detect whether or not an expression is written in the right way. By "right" I mean all variables should are required to be single-character, all factors to be such variables or function thereof, and all terms to be products of such factors .
I have tried with:
But it doesn't help, because I can have the situation
which is not right for me, because
y are are the factors and I want
y to be the factors.
So is there any way to detect this problem?