Professional Documents
Culture Documents
Kumpul MTK Latihan 2
Kumpul MTK Latihan 2
T=60+273; %Suhu FD
z=[0.55 0.45];
pt=1;
eps=0.01;
fold=4;
L=35;
jt=1;
[f,xh,yh]=flasht1(pt,z,L,T);
function [f,x,y]=flasht1(pt,z,L,T);
xt=0;
F=100;
V=F-L;
p=datatek(T);
for i=1:2
k(i)=p(i)/pt;
x(1)=z(1)/(1+V/F*(k(1)-1));
x(2)=1-x(1);
y(1)=x(1)*k(1);
y(2)=1-y(1);
xt=xt+x(i);
end
f=1-xt;
function p=datatek(T)
A=[15.6728 15.8333];
B=[2154.9 2477.07];
C=[-34.42 -39.94];
for i=1:2
p(i)=exp(A(i)-B(i)/(T+C(i)))/760;
end