degree property

int get degree

The degree, or -1 for the zero polynomial.

Implementation

int get degree => coefficients.bitLength - 1;