三角函数,已知函数f(x)=sin(pai-wx)coswx+cos平方wx(w>0)的最小正周期为pai(1)求w的值