This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 07/10/2011 for the course CS 257 taught by Professor Olson during the Spring '08 term at University of Illinois, Urbana Champaign.
 Spring '08
 Olson

Click to edit the document details