You are on page 1of 1

function[x,y]=pp_phituyen(a,b,eps)

z=1/(2*sqrt(b+0.2));
w=1/(2*sqrt(a+0.3));
if z <1 && w<1
x1=a;
y1=b;
x2=x1-(x1^2-y1-0.2)/(2*x1);
y2=y1-(y1^2-x1-0.3)/(2*y1);
while (abs(x2-x1)>eps)||(abs(y2-y1)>eps)
x1=x2;
x2=x1-(x1^2-y1-0.2)/(2*x1);
y1=y2;
y2=y1-(y1^2-x1-0.3)/(2*y1);
end
x=x2;
y=y2;
else
x='k hoi tu';
y='k hoi tu';
end
end

You might also like