negatePoly static method

Int32List negatePoly(
  1. Int32List poly
)

Implementation

static Int32List negatePoly(Int32List poly) {
  final Int32List out = Int32List(poly.length);
  for (int i = 0; i < poly.length; i++) {
    out[i] = subtract(0, poly[i]);
  }
  return trim(out);
}