Question: 2. Modify the function parabolicexp into a new function parabolicimp that uses the implicit method to solve the heat equation u = cuxx, u(1,0) =

2. Modify the function parabolicexp into a new function parabolicimp that uses the implicit method to solve the heat equation u = cuxx, u(1,0) = u(t, L) = 0, u(0, x) = f(x) by repeated solving the system Bu;+1 = u; using LU decomposition for each time step. Run the function with L=5, T = 50, c=0.1, and f(x) = sin(rx/5) and at least 10 pairs of values of m and n. Calculate the corresponding r for each pair. Turn in the program and a list of the m,n,r you tried and whether the numerical solution was stable or unstable. 2. Modify the function parabolicexp into a new function parabolicimp that uses the implicit method to solve the heat equation u = cuxx, u(1,0) = u(t, L) = 0, u(0, x) = f(x) by repeated solving the system Bu;+1 = u; using LU decomposition for each time step. Run the function with L=5, T = 50, c=0.1, and f(x) = sin(rx/5) and at least 10 pairs of values of m and n. Calculate the corresponding r for each pair. Turn in the program and a list of the m,n,r you tried and whether the numerical solution was stable or unstable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
