You are on page 1of 1

function f=as(v)

global z F K
f=(sum(z.*K.*F/(v.*(K-1)+F))-1);

clc
clear
global F z K
F=800;
%Laju alir umpan masuk dalam (mol/jam)
z=[0.0046 0.8345 0.0381 0.0163 0.0050 0.0074 0.0287 0.02 0.0434];
K=[1.65 3.09 0.72 0.39 0.21 0.175 0.093 0.065 0.036];
format short
V=fsolve('as',586)
L=(F-V)
x=z*F./(L+K.*V)
y=K.*x

HASIL
Sum of squares of the function values is > sqrt(options.TolFun).
Try again with a new starting point.

V = 586
L = 214
x=

0.0031 0.3297 0.0479 0.0295 0.0119 0.0187 0.0855 0.0635 0.1477

y=

0.0051 1.0188 0.0345 0.0115 0.0025 0.0033 0.0080 0.0041 0.0053

You might also like