If the temperature difference between an object and its surroundings is
small, the rate of change of the temperature of the object is
proportional to the temperature difference:
(4) |
Write a program to calculate the temperature of a body at a time , given the cooling constant and the temperature of the body at time . Plot the results for ; using different intervals and compare with exact (analytical) results.