y=sin^2x+cosx=1-cos^2x+cosx=-(cos^2x-cosx-1)
=-(cosx-1/2)^2+5/4
cosx=1/2时.取最大值5/4
cosx=-1时,取最小值-1
所以取值范围是-1到5/4(-1,5/4都取的到)