WolframAlpha computational knowledge AI
y = (-1)^(floor(x)) (x - floor(x)) + θ((-1)^(ceil(x)))