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