y=1/2*(1+cos2x)+1/2*sin2x
=1/2+1/2(cos2x+sin2x)
=1/2+√2/2*sin(2x+pie/4)
所以,值域应该是[1/2 -√2/2,1/2 +√2/2]