Polynomials equations simplified in Machine Learning