simplify roots quadratic processing