pub fn non_zero_coefficients(&self) -> usize {
        let zeros = self
            .coefficients
            .iter()
            .rev()
            .take_while(|c| c.is_zero())
            .count();

        self.coefficients.len() - zeros
    }
/// Return the count of non-zero coefficients
Return the count of non-zero coefficients
Return the count of non - zero coefficients
pub fn non_zero_coefficients(&self) -> usize {
        let zeros = self
            .coefficients
            .iter()
            .rev()
            .take_while(|c| c.is_zero())
            .count();
        self.coefficients.len() - zeros
    }
pub fn non_zero_coefficients ( & self ) -> usize { let zeros = self . coefficients . iter ( ) . rev ( ) . take_while ( | c | c . is_zero ( ) ) . count ( ) ; self . coefficients . len ( ) - zeros }
Return the count of non-zero coefficients
Return the count of non - zero coefficients
&self
&self