In the expression x2y2+xy2+x3y+x4y4 I would like to keep only the term where the variables have even power x2y2+x4y4
Is there a way to do it?
I look into this post.
But once I get the operand, I don't see how to test the exponent of each variable.