/* prog2b.c -- Solve viscous Burgers Equation Written Apr 6, 2003 by Eric Olson for Mathematics 484 For information about the central finite difference scheme used here see chapter 7 in Numerical Analysis for Applied Mathematics Science and Engineering by Greenspan and Casulli. Information about the heat and Burgers equations may be found in 13 and 14 in A First Course in the Numerical Analysis of Differential Equations by Iserles. */ #define N 16 #include #include double u[N],f[N],dx; init(double u[N]){ int i; for(i=0;i