format long e %always use this format to see significant digits

fprintf('largest fl.p. number = %e\n', realmax);
fprintf('largest integer = %e\n', intmax);
fprintf('largest integer that does not cause overflow with next one = %e\n', intmax-1);
(ans1+1)-1 
fprintf('smallest fl.p. number = %e\n', realmin);
fprintf('machine epsilon = %e\n', eps);
(1+eps)-1

% n = 1e6;
% while (true)
%     fprintf('n=%e ',n);
%     b = zeros(n,1);
%     %a = zeros(n);    
%     n = n+1e6;    
% end

n = 100;
while (true)
   fprintf('n=%e ',n);
   a = cat(n,zeros(2));
   n = n*10;
end

