Yesterday, nobody contributed anything. :-( The official answer is: -e ^ (floor(abs(x) * floor(-x)) - 1).