// Y.V.C.Rao ,1997.Chemical Engineering Thermodynamics.Universities Press,Hyderabad,India. //Chapter-12,Example 2,Page 427 //Title: van Laar parameters and t-x-y data //================================================================================================================ clear clc //INPUT //For convenience methanol is taken as 1 and nitromethane is taken as 2 P=760;//pressure of the system in Torr t=[96.90;68.20;65.10;64.50];//temperature of the system in degree celsius (from Nakanishi et al.) x1=[0.0150;0.4260;0.7470;0.9140];//mole fraction of methanol in the liquid phase corresponding to the given temperature (no unit) (from Nakanishi et al.) y1=[0.1330;0.7470;0.8380;0.9210];//mole fraction of methanol in the vapour phase corresponding to the given temperature (no unit) (from Nakanishi et al.) antoine_const_methanol=[8.08097;1582.271;239.726];//Antoine's constants for methanol from Table A.7 antoine_const_nmethane=[7.28166;1446.937;227.600];//Antoine's constants for nitromethane from Table A.7 //CALCULATION //The form of the Antoine's equation used is logP=A-(B/(t+C)), where P is in Torr and t is in degree celsius l=length(t);//iteration parameter i=1; while i