Skip to content

Commit

Permalink
fix notice for poly/poly.v
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Aug 10, 2024
1 parent 7c55411 commit bdb5c39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poly/poly.v
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ pub fn divide(a []f64, b []f64) ([]f64, []f64) {
for i in 0 .. b.len {
remainder[i] -= lead_coef * b[i]
}
remainder = remainder[1..]
remainder = unsafe { remainder[1..] }
for remainder.len > 0 && math.abs(remainder[0]) < 1e-10 {
remainder = remainder[1..]
remainder = unsafe { remainder[1..] }
}
}

Expand Down

0 comments on commit bdb5c39

Please sign in to comment.