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