Functions for the Solution of Poly