mixed arithmetic
explicit polynomial representation
convert int-valued doubles to ints
extract coeff from polynomial rep
complicate test. got some off by one errors