A cup of hot water was left to cool in a room at , and its temperature was read every two minutes. You will make the program test Newton's law of cooling: if it holds, the logarithm of the excess temperature falls in a straight line, and its slope gives the cooling constant.
The idea. , so : a straight line of slope .
Your tasks.
excess at every reading.np.log(excess) against t, and find k.k to predict when the water reaches .Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…