#tan(x/2)= (sin(x/2))/(cos(x/2))=(sqrt(1/2(1-cosx)))/(sqrt(1/2(1+cosx)))#
#(sqrt(1/2(1-cosx)))/(sqrt(1/2(1+cosx)))-sinx=0#
#((sqrt(1/2(1-cosx)))/(sqrt(1/2(1+cosx))))^2=sin^2x#
#(1-cosx)/(1+cosx)=sin^2x#
#1-cosx=sin^2x+sin^2xcosx#
#1-cosx=1-cos^2x+sin^2xcosx#
#-cosx=-cos^2x+sin^2xcosx#
#cos^2x-sin^2xcosx-cosx=0#
#cosx(1-sin^2x-1)=0#
#cosx(-sin^2x)=0#
#cosx =0=>x=pi/2 , (3pi)/2#
#sin^2x=0=>x=0, pi#