fix: Re-Add else-if case

This commit is contained in:
Alivecow 2024-11-27 14:13:30 +01:00
parent 6532c576c6
commit b898c32ded

View file

@ -39,6 +39,8 @@ pub fn ddf(f: Polynomial) -> Vec<(Polynomial, u128)> {
if f_star != one_cmp { if f_star != one_cmp {
eprintln!("fstar not one"); eprintln!("fstar not one");
z.push((f_star.clone(), f_star.degree() as u128)); z.push((f_star.clone(), f_star.degree() as u128));
} else if z.len() == 0 {
z.push((f.clone(), 1));
} }
z z