Division of two polynomials (coefficient representation).
static List<num> div(List<num> f, List<num> g) { return ifft(divFft(fft(f), fft(g))); }