 function [x, y] = rectangular2(r, theta)
 x = r.*cos(theta);
 y = r.*sin(theta);
 if nargout < 2
     x = x + i*y;
 end
