Question: typematch behaving differently after/before copy and paste

As a result of a calculation I have a long expression. I give it a name, say, X,

X:= long expression. 

I try to use typematch to extract different parts of X and its does not work (it returns false).  

If, however, I copy and paste the long expression from the output and plug into my typematch query it works!   

It seems that copy and paste change the type of the expression. I am very confused with this. 


I have uploaded a file with the problem at the beggining.  Thank you! 


Please Wait...