function p312
%This function essentially simulates the chemical proceedure displayed in Reklaitis
%problem 3.12.  This function serves to illustrate how a chemical process can be 
%turned into a matlab m-file and solved.
global ns
mix([1 2 8],3)
react(.9,3,4)
sep([0 0 0 1 0 0 0],4,5:6)
sep([0.625 1 0.45977011 1 1 1 1],6,7:8)
disp('    C2H5OH     H2SO4   in Stream 8')
disp(ns(8,[1 3]))
