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