done AdvancedPolynomialFunction.solve(min,max) function