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?
Comment:
When you intersect the surface with plane $p(x, z)=x+z=\beta$ that means you eliminate y in the surface equation. Now you have curve $Ax^2+Cz^2=\alpha$ in (x,z) plane; we may rewrite this equation as:
$\frac {x^2}{C}+\frac{z^2}{A}=\frac {\alpha}{AC}$
The coordinate of points of intersection are the solution of this system of equatn:
$\begin{cases}\frac {x^2}{C}+\frac{z^2}{A}=\frac {\alpha}{AC}\\x+z=\beta \end{cases}$
If $A, C. \alpha>0$ then you have an ellipse. If [$A<0$ and $C>0$]or [$C<0 $ and $A>0$], then Hyperbola is the intersection.