Smed
- 36
- 1
Hi, can someone tell me the difference between the Crank-Nicolson and Heun numerical methods? For Heun's method I'm looking here http://en.wikipedia.org/wiki/Heun's_method and for the Crank-Nicolson method I'm looking here http://en.wikipedia.org/wiki/Crank–Nicolson_method . When I actually carry out a calculation with equal timesteps for both methods and f(t,u)=-.5*u, I get the exact same solution.
The equation I have for both is:
u^{n+1} = u^{n} - \frac{1}{2}u^{n}dt - \frac{1}{8}u^{n}dt^{2}
The equation I have for both is:
u^{n+1} = u^{n} - \frac{1}{2}u^{n}dt - \frac{1}{8}u^{n}dt^{2}
Last edited by a moderator: