Question: Problem Three: Based on Problem 1.17. Page 22. Chapra Textbook) According to Newton's law of cooling, the temperature of a body changes at a rate
Problem Three: Based on Problem 1.17. Page 22. Chapra Textbook) According to Newton's law of cooling, the temperature of a body changes at a rate proportional to the difference between its temperature and that of the surrounding medium (the ambient temperature) where T-the temperature of the body (C),me (min), k-0.019 min is the proportionality constant, and T. 20C is the ambient temperature The analytical solution of the ordinary differential equation (ODE) is: Page I of 2 The Euler's numerical method for solving the ODE assumes that the first derivative is approximated using the finite difference equation: At Suppose that a cup of coffee originally has a temperature of 70C. Solve the following a) Use Euler's method to compute the temperature from1-0 to 20 min using a step b) Plot the results obtained in parts (a) together with the true solution given above. questions using MATLAB script (statements in the Command Window) size of 5 min. Include axis titles, plot title, gridlines and legend
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
