Question: please help write a MATLAB CODE ONLY for this question 2. Integration and Differentiation (16 points) The heat required, H(cal), to induce a temperature change,
2. Integration and Differentiation (16 points) The heat required, H(cal), to induce a temperature change, T(C), of a material can be computed as H=mCP(T)T where m= mass (g), CP(T)=heatcapacity(cal/(gC)). The heat capacity increases with temperature, T(C), according to CP(T)=0.132+1.56104T+2.64107T2 1) Estimate the change rate ( 1st derivative) of Cp at T=100C using forward, backward and centered finite differences (accuracy O(h2) ) respectively with step sizes of 1C. Compare the relative errors. 2) Write a script that uses the integral function to generate a plot of AH vs AT for cases where m=1kg, the starting temperature is 100C, and T ranges from 0 to 300C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
