Functions to solve for real roots of polynomials up to order 4. Tests are exhaustive and all pass.