pub fn degree(&self) -> usize {
        if self.coefficients.is_empty() {
            0
        } else {
            self.coefficients.len() - 1
        }
    }
Returns the degree of a polynomial, which corresponds to the highest power of x^d
with non-zero coefficient
crates/math/src/polynomial/mod.rs