fix: Fix incorrect degree calculation
This commit is contained in:
parent
4a2b0ab014
commit
6532c576c6
2 changed files with 3 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ impl Polynomial {
|
|||
}
|
||||
|
||||
pub fn degree(&self) -> usize {
|
||||
self.polynomial.len()
|
||||
self.polynomial.len() - 1
|
||||
}
|
||||
|
||||
pub fn one() -> Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue