add AdvancedPolynomialFunction (extends from PolynomialFunction) for future extensions.