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