Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started