Unformatted text preview: f ( π/ 6) using this scheme and indicate the order of convergence (i.e. what is p in  f ( pi/ 6)approx  = ch p . Use the ratio of p =  e k   e k +1  for this estimate). Handin code, and estimate of p , and the following table. h approx df exact df error ratio 1/10 1/20 1/40 1/80 1/160 1/320 1/640 The following printline in Matlab may help printing the table: 1 fprintf ( ’%10s %10s %10s %10s %10s\n’ , ’h’ , ’approx df’ , ’exact df’ , ’error’ , ’ratio’ ); 2 fprintf ( ’%10s %10g %10g %10.2g %10.2g\n’ ,strtrim( rats (h)),df,dfexact,err(j),ratio); Page 1 of 1...
View
Full Document
 Spring '08
 Olson
 Numerical Analysis, Approximation, Ratio, Luke Olson

Click to edit the document details