Should that be infPoly[i+1] = coef[i] - root * coef[i+1]?
Completely possible that I can't math or computer before caffeine this morning, but my C# version of that code isn't passing tests I wrote without that change and the fix makes sense in my head since it combines the lines before and after it, and the middle coefficients in the results are what I'm seeing being buggy.
Should that be
infPoly[i+1] = coef[i] - root * coef[i+1]
?Completely possible that I can't math or computer before caffeine this morning, but my C# version of that code isn't passing tests I wrote without that change and the fix makes sense in my head since it combines the lines before and after it, and the middle coefficients in the results are what I'm seeing being buggy.