Closed nsajko closed 1 year ago
Thanks! An error is as reasonable as an empty collection. We use an empty collection in Polynomials
. PolynomialRoots
errors in the algorithm. Not sure any solution would be preferred. I'll merge this in once the tests pass.
Note that after this PR AMRVW behaves like so:
I don't know what's the intended behavior, but it might make sense to error explicitly in the case of a zero polynomial, instead of returning no roots.