% Script: Mysum1 % silly summation to show error % format long max = 100000 % number of times to add mysum = 0; % need to define variable first for k=1:max mysum = mysum + 0.1; end mysum % % for comparison, look at product myprod = max*0.1