Example 3.  Determine the error in the Taylor Series method, by comparing it with the analytic solution.
Solution  3.

The Taylor Series Method computed a ListPlot.  We must use this same type of data structure for  [Graphics:../Images/TaylorDEMod_gr_64.gif]  in order to compare the two.  The subroutine stored the abscissas in a list T.  

[Graphics:../Images/TaylorDEMod_gr_65.gif]
[Graphics:../Images/TaylorDEMod_gr_66.gif]

Taking  [Graphics:../Images/TaylorDEMod_gr_67.gif]  will produce a list of ordinates.  

[Graphics:../Images/TaylorDEMod_gr_68.gif]
[Graphics:../Images/TaylorDEMod_gr_69.gif]

The error is just the difference.  

[Graphics:../Images/TaylorDEMod_gr_70.gif]
[Graphics:../Images/TaylorDEMod_gr_71.gif]

Plotting the data points for the error is similar to plotting the data points for the Taylor Series method solution.  

[Graphics:../Images/TaylorDEMod_gr_72.gif]

[Graphics:../Images/TaylorDEMod_gr_73.gif]

[Graphics:../Images/TaylorDEMod_gr_74.gif]

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2003