Um.. I'm not so sure, should'nt it loop till it finds an infintesimals, while testing I found out cases where even after finding an infinitesimal, the higher degrees give a solution.