x = 5;
y = -2
if x >= 0 & y >= 0
fun = x + y;
elseif x >= 0 & y < 0
fun = x + y^2;
elseif x < 0 & y >= 0
fun = x^2 + y;
else
fun = x^2 + y^2;
end
disp (['The value of the
X-Gmail-Received: dddc4928e0c98c80e8e96146c961b88315ecf87c
Delivered-To: joseph.walker@gmail.com
Received: by 10.35.31.13 with SMTP id i13cs4915pyj;
Tue, 21 Mar 2006 10:21:15 -0800 (PST)
R