You are on page 1of 1

Name: Nawal binti Abd Ghafar (MKK152013)

Subject : Numerical Computation in Chemical Engineering (MKKK1643)

ASSIGNMENT 5
a) p=[1.9520*(10^-14) -9.5838*(10-^11) 9.7215*(10^-8) 1.671*(10^-4) 0.99403];
T=0:1:1200;
Cp=polyval(p,T);
plot(T,Cp)
xlabel(Temperature (K))
ylabel(Cp(kJ/kg.K))
b) 1. polyval(p,T) is used because the equation of polynomial is given. We want to find
the corresponding Cp value from the range of temperature given. Polyval(p,T) will
substitute the temperature value to the Cp function equation.
2. plot(T,Cp) is used to plot the curve of Cp against temperature, T.

You might also like