This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: 8.1 a) balance=1000; For years=[1:10] For months=[1:12] Balance=balance*1.01; End Disp( [years balance] ); End 8.2 a) terms=100; Pi=0; Sign=1; For n=1 : terms Pi=pi+sign*4/(2*n1); End b) terms=100; pi=0; for n=1 : terms pi=pi+8/((4*n3)*(4*n1)); end 8.3) a=1 n=6 for i=1:10 n=2*n; a=sqrt(2sqrt(4a*a)); l=n*a/2; u=l/sqrt(1a*a/2); p=(u+1)/2; e=(u1)/2; disp( [n, p, e] ); end 8.8) sum=0; terms=0; while (sum+terms)<=100 terms=terms+1; sum=sum+terms; end disp( [terms, sum] );...
View
Full Document
 Spring '08
 ELSTON
 United States customary units, Inch, MATLAB Book HW, yards feet inches

Click to edit the document details