output formatting for polynomials of variable order