Add output function for the polynominal