fix: Fix incorrect degree calculation

This commit is contained in:
Alivecow 2024-11-27 14:06:40 +01:00
parent 4a2b0ab014
commit 6532c576c6
2 changed files with 3 additions and 2 deletions

View file

@ -25,7 +25,7 @@ impl Polynomial {
}
pub fn degree(&self) -> usize {
self.polynomial.len()
self.polynomial.len() - 1
}
pub fn one() -> Self {