y = floor(x) * abs(sin(pi*x))