已知函数y=-cos^2x+asinx+1/2(a为常数,且a