rewrite sin/cos/atan kernels using Horner's method