Quadratic and Cubic Solver