You are given a second order surface $Ax^2+By^2+Cz^2=α$ and a plane $x+z=β$. Determine the type of the surface and the type of the curve at the intersection of the surface and the plane.
Basically, I need to write a program, that will do task, getting as parameters $A, B, C, \alpha,\beta$. So, the best way I found to make this, is to just check every equation by coefficients signs to determine quadratic surface. But what about curves of intersection? Is there a simple way to determine their type only by given parameters?