No algorithms are used but I do use a simple equation if decisions/points are close ie

e^{i x} = \cos x + i \sin y=35-sin 23(132) =0 hope this helps