sin(2 theta)-cos(theta)-2 sin(theta)+1=0