Implement polynomials construction for FO function.