Fix quadratic equation function.