Skip to content

Commit

Permalink
Add leading_coefficient method in Polynomial
Browse files Browse the repository at this point in the history
  • Loading branch information
kambereBr committed Mar 18, 2024
1 parent 1ab5140 commit 963856b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions baby-stark/src/polynomial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,14 @@ impl Polynomial {
!self.__eq__(other)
}

pub fn __is_zero__(self) -> bool{
pub fn is_zero(self) -> bool{
if self.degree() == -1 {
return true;
}
return false;
}





pub fn leading_coefficient(self){
self.coeficients[self.degree()]
}
}

0 comments on commit 963856b

Please sign in to comment.