Solve the differential equation given by Newton's law of
cooling with the implicit single step method of
Crank-Nicolson. The differential equation is given as|
T'(t) + k*T(t) = k*Ts
With: k : positive constant
Ts : temperature of surroundings
For this example: T(0)=100, Ts=20, k = 0.0654.
The numerical solution is compared to the exakt solution.