Consider the physical application from Sect. 9.2.4. Run this case with the θ rule and θ = 1/2 for the following values of Δt: 0.001, 0.01, 0.05.
a)The Crank-Nicolson method for ODEs is very popular when combined with diffusion equations. For a linear ODE u = au it reads un+1 −…