%PENG 6.11
%Jeannette Spuhler for the exercise 2012/10/26
x = [-1:2/20:1];
y = [-2*pi:(4*pi/20):2*pi];
[X,Y] = meshgrid(x,y);
Z = exp(X).*(cos(Y)+i*sin(Y));
%Z = exp(X+i*Y);
figure(1)

mesh(X, Y, real(Z))
title('mesh version');
ylabel('imaginary part');
xlabel('real part');
zlabel('real part of z');

figure(2)
surf(X, Y, real(Z))
title('surface version');
ylabel('imaginary part');
xlabel('real part');
zlabel('real part of z');

figure(3)
contour(X, Y, real(Z))
title('contour version');
ylabel('imaginary part');
xlabel('real part');



