% hw052
%
xvec = linspace ( -4.0, -1.0, 101 );
yvec = linspace (  0.0, 2.0, 101 );
[ X, Y ] = meshgrid ( xvec, yvec );
Z = f ( X, Y );
contour ( X, Y, Z, 'Linewidth', 3 );
colorbar ( );
colormap ( jet );
title ( 'HW052', 'Fontsize', 12 );

axis off
print ( '-djpeg', 'hw052.jpg' );

function value = f ( X, Y )
  value = 2.0 * X.^2 + 3.0 * X .* Y + 6.0 * Y.^2 + 7.0 * X - 5.0 * Y + 10.0;
  return
end

