plot {1-abs(x/pi), (cos(x/2))^2}, x=-pi..pi