A square wave is shown opposite. It can be seen that the function can be even or odd depending on the location of the origin. There are 2 locations where the function is odd and 2 where it is even. In each case one is the negative of the other. 

If the origin is located at any other points than the one above then the function has even and odd parts. An example is shown opposite. 
