I am solving for L, V, x1, and y1, but I'm getting very large fractions that are incorrect. What should I change to have MATLAB output an actual answer for each? Thanks.
x1 and y1 are mole fractions, meaning they should be less than 1. V and L are vapor and liquid streams, which have units of mol/s. The values shouldn't be greater than 3 mol/s.
P1 = 124.13; %mmHg
P2 = 483.53; %mmHgP = 300; %mmHgN = 2.15; %mol/s
w = 0.5;syms L V x1 y1eq1 = N-L-V;eq2 = (w*N)-(x1*L)-(y1*V);eq3 = (x1*P1)-(y1*P);eq4 = ((1-x1)*P1)-((1-y1)*P2);sol = solve(eq1,eq2,eq3,eq4)disp(sol.L)disp(sol.V)disp(sol.x1)disp(sol.y1)
Best Answer