No BSD License  

Highlights from
Alternative Mathematics using MATLAB 7

image thumbnail

Alternative Mathematics using MATLAB 7

by

 

13 Mar 2003 (Updated )

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

ex141.m
% ex141.m:  Sum of a Geometric Series				                 
clear all,  format long
k=input('k= (e.g. 2) ');				% Enter k from keyboard
si=0;						% Initial value for sum
for i=1:20					% Set up loop 
   term=k^(i-1);				% Term with index i
   si=si+term;				% Add term to si
   si_ex=(1-k^i)/(1-k);			% Analytic expression for si
   sums=[si  si_ex],  pause		% Display, continue by return
end						% End of loop

Contact us