plot sin(x) + cos(x) and sin(x/2) + cos(x/2) from 0 to 4pi