WolframAlpha computational knowledge AI
plot ((1+(-1)^floor(x))/2)(x - floor(x)/2)+((1-(-1)^floor(x))/2)((floor(x)+1)/2), {x,0, 10}