1.y=sin^2(x/2)
=1/2*2sin(x/2)^2+1/2-1/2
=1/2*[2sin(x/2)^2-1]+1/2
=1/2*cosx+1/2
故T=2π/ω=2π
2.y=|sin(ωx)|
T=2π/2ω=2 -> ω=π/2