You are on page 1of 2

clc

syms X Y

solve(sin(X - 1) + Y - 1.4 == 0, X)
solve( X - sin (Y + 1) - 0.8 == 0, Y)

G1(Y) = 1 - asin(Y - 7/5)


pi + asin(Y - 7/5) + 1
;
G2(X) = asin(X - 4/5) - 1
pi - asin(X - 4/5) - 1
;

G1X = diff(G1,X)
G1Y = diff(G1,Y)
G2X = diff(G2,X)
G2Y = diff(G2,Y)

f1 = @(x,y) x - sin(y + 1) ;
f2 = @(x,y) x - sin (y + 1) - 0.8;

Jacobi_ilyass_NLS(f1,f2,1,1,0.001)

ans =

1 - asin(Y - 7/5)
pi + asin(Y - 7/5) + 1

ans =

asin(X - 4/5) - 1
pi - asin(X - 4/5) - 1

G1(Y) =

1 - asin(Y - 7/5)

ans =

pi + asin(Y - 7/5) + 1

G2(X) =

asin(X - 4/5) - 1

ans =

1
pi - asin(X - 4/5) - 1

G1X(Y) =

G1Y(Y) =

-1/(1 - (Y - 7/5)^2)^(1/2)

G2X(X) =

1/(1 - (X - 4/5)^2)^(1/2)

G2Y(X) =

Roots of system
x = -0.2
y = -1
is found with 4 iterations with precision 0.001
using fixed point method

Published with MATLAB® R2020a

You might also like