clear all;
clc;
%Question 5: The two equations to be solved are sqrt(x)+y=3 and x+sqrt(y)=5
%we cannot convert these in a form AW=U. It is not a linear equation in x
%and y. In fact this is a degree 4 polynomial system. Hence we can get 4
%roots of which some may be real, some complex.
% Hence we can directly use plots for such a system
% We can plot two functions y1 = f(x) = (3-sqrt(x)) and y2 = g(x) = (5-x)^2;
x = 1:7;
y1 = (3-sqrt(x));
y2 = (5-x).^2;
plot(x,y1,x,y2);
grid on;
% We see, the equations give rise to two points of intersection in real
% plane.