Poly([List<int>? c]) : coeffs = List.filled(n, 0) { if (c != null) { if (c.length != n) throw ArgumentError('Poly needs $n coeffs'); for (var i = 0; i < n; i++) coeffs[i] = c[i] % q; } }