buildMonomial method
Implementation
ModulusPoly buildMonomial(int degree, int coefficient) {
if (degree < 0) {
throw ArgumentError();
}
if (coefficient == 0) {
return _zero;
}
final coefficients = List.filled(degree + 1, 0);
coefficients[0] = coefficient;
return ModulusPoly(this, coefficients);
}