Solve for θ -2cos(theta)^2+sin(theta)+1=0