making polyfit for trigfuns more abstract.