WolframAlpha computational knowledge AI
plot piecewise[{ { cos(pi/2+x/2), x<pi }, { (cos(x)-1)/2, x>pi } }] for x=0 to 2*pi