No BSD License  

Highlights from
Alternative Mathematics using MATLAB 7

image thumbnail

Alternative Mathematics using MATLAB 7


Gunnar Backstrom


13 Mar 2003 (Updated )

Self-instructive text on undergraduate algebra, statistics, differential and integral calculus.

% ex143.m:  Sum of 1/i				                 
clear all,  format long
for i=1:1000				% Set up loop 
   term= 1/i;  si=si+term;		% Add the term			
   Index(i)=i;				% Index=vector of indices
   Sum(i)=si	;				% Sum=vector of sums
end						% End of loop
figure(1),  plot(Index, Sum),  grid on,  xlabel('index'),  ylabel('sum')
   title('Sum of 1/i')

Contact us