ezplot("x^2+(2+1)*y=1+3-7")
hold on
ezplot('(4+2)*x-(2+3)*y^2=1-5*(2+3)')
hold on
grid on
%alglähendid (-1.5;-1.8) ja (2.3;-2.7)
F=@(z) [z(1)^2+(2+1)*z(2)+3;(4+2)*z(1)-(2+3)*z(2)^2+24];
z=[-1.5;-1.8];
i=0;
while norm(F(z),1)>10^(-5)
 Ftuletis=[2*z(1),3;6,-10*z(2)];
 z=z-inv(Ftuletis)*F(z);
 i=i+1;
end
lahend1n=z
sammud1n=i
%lahendid [-1.4866;-1.7367]
%sammud 2
z=[2.3;-2.7]; % veeruvektorina
i=0;
while norm(F(z),1)>10^(-5)
 Ftuletis=[2*z(1),3;6,-10*z(2)];
 z=z-inv(Ftuletis)*F(z);
 i=i+1;
end
lahend2n=z
sammud2n=i
%lahend [2.2895;-2.7473]
%sammud 2
% hariliku iteratsioonimeetod
syms x y
tuletised=jacobian([sqrt(-3*y-3),sqrt((6*x+24)/5)],[x,y])
