function st = whatconic(A)

% st = whatconic(A)
%
% Return string variable st either 'ellipse' or 'hyperbola'
% given the eigenvalues of symmetric matrix A.

l = eig(A);

if l(1)*l(2) > 0
    st = 'ellipse';
elseif l(1)*l(2) < 0
    st = 'hyperbola';
else
    st = 'degenerate';
end
