Short way to get a nice odd-even function