hacspec_lib::prelude

Function degree_poly

Source
pub fn degree_poly<T: Integer + Copy>(poly: &Seq<T>) -> usize
Expand description

Returns degree of polynomial, e.g. for 3x² + 2x + 1 -> 2