Linear Convection -Challenge 1
Objective: The 1 Dimensional wave equation is given by `(delu)/(delt)+c.(delu)/(delx)=0` The following are the parameters given: `=1 m; c=1; dt=0.01; n=20,40,80 and 160` dt.nt=0.4 s The following are the results obtained after the code is run for different values of n and dx. 1) For…