function g=FlashNoIdeal2VL(w)
global A
global B
global C
global Pop
global AVL
global z
global fvap
T=w(1);
xx1=w(2);
yy1=w(3);
x=[xx1 1-xx1];
P1vap=10.^(A(1)-B(1)./(T+ C(1)));
P2vap=10.^(A(2)-B(2)./(T +C(2)));
A12=AVL(1);
A21=AVL(2);
gamma(1)=exp(A12.*(A21.*x(2)/(A12.*x(1)+A21.*x(2))).^2);
gamma(2)=exp(A21.*(A12.*x(1)/(A12.*x(1)+A21.*x(2))).^2);
g(1)=x(1).*gamma(1).*P1vap+x(2).*gamma(2).*P2vap-Pop;
g(2)=x(1).*gamma(1).*P1vap-yy1.*Pop;
g(3)=yy1+(1-fvap)./fvap.*x(1)-z(1)./fvap;
Error using FlashNoIdeal2VL (line 10)
Not enough input arguments.