While working on a problem, I was using EvenQ in a RegionPlot. I came across this interesting case (simplified here for specificity). I expected to see a bunch of stripes, but got nothing:
RegionPlot[EvenQ[Floor[x]],{x,0,10},{y,0,10}]
However, it was fine if I used Mod to the same effect instead:
RegionPlot[Mod[Floor[x],2]==0,{x,0,10},{y,0,10}]
I also get the correct results if I substitute (Mod[Floor[#],2]==0&) for EvenQ. I also tried a version with Assert[Head[#]==Integer]& included appropriately, and it did not ever raise an error, but the Mathematica evaluation model is still a bit mystical to me in some bits.


