Solve quadratic equations in a function of the unknown (#297)