polynomials: implement stub
polynomials: implement stub: a task in smol-software-harbor (Harbor dataset). derivative() in src/lib.rs is unimplemented!() . Implement it as documented: coefficients are ordered from the constant term up, the result drops the constant and multiplies each remaining coefficient by its power ( 5…
The task
`derivative()` in `src/lib.rs` is `unimplemented!()`. Implement it as documented: coefficients are ordered from the constant term up, the result drops the constant and multiplies each remaining coefficient by its power (`[5, 3, 2]` -> `[3, 4]`); a constant or empty polynomial gives an empty vector. Run `cargo test…
Part of efederici/smol-software-harbor.