Poly coeff

This is a modified version of #1777.