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