Yesterday, nobody contributed anything.  :-(
The official answer is: -cos(floor(-(2 * x)))