%  hw051
%
xvec = linspace ( -10, 0.0, 1001 );
yvec = linspace ( -10, 0.0, 1001 );
[X,Y] = meshgrid ( xvec, yvec );
Z = sin(Y) .* exp(1-cos(X)).^2 + cos(X) .* exp(1-sin(Y)).^2 + (X-Y).^2;
max(max(Z))
min(min(Z))
surf ( X, Y, Z, 'EdgeColor', 'None' );
xlabel ( '<-- X -->' );
ylabel ( '<-- Y -->' );
zlabel ( '<-- Z(X,Y) -->' );
title ( 'HW051', 'Fontsize', 24 );
print ( '-djpeg', 'hw051.jpg' );
