Matlab Program:
clear
clc
close all
% assuming x and y data
X=-5:5;
Y=-5:5;
% mesh grid
[x,y]=meshgrid(X,Y);
[m,n]=size(x);
f=zeros(m,n);
for i=1:m
for j=1:n
if x(i,j)>=0 && y(i,j)>=0
f(i,j)=x(i,j)*y(i,j);
elseif x(i,j)>=0 && y(i,j)<=0
f(i,j)=x(i,j)*y(i,j)^2;
elseif x(i,j)<0 && y(i,j)>=0
f(i,j)=x(i,j)^2*y(i,j);
elseif x(i,j)<0 && y(i,j)<0
f(i,j)=x(i,j)^2*y(i,j)^2;
end
end
end
% graph
mesh(x,y,f)
Screenshot:
Save the above program and execute it.
Result:
I hope this will help you.
1. Write a code to draw a ‘mesh' graph of following function f(x,y)= xy x >...
5. Let F(x, y, z) = (yz, xz, xy) and define Cr,h = {(x, y, z) : x2 + y2 = p2, z = h}. 1 Show that for any r > 0 and h ER, Sony F. dx = 0
Problem 2. Let f be a self-map on a set X. For x,y e X define x ~ y if and only if f"(x) = f(y) for some integers n, m > 0. Show that ~ is an equivalence relation.
11. Let X be a continuous random variable with density function fare-102 for 10 f(1) = lo otherwise where a > 0. What is the probability of X greater than or equal to the mode of X?
(a)If F =< y2 + 2x22, 2xyz, xy² + 2x22 >, find the function f(2, y, z) such that F=Vf. (Hint: F is a conservative vector field) (b) A vector field F = Pi +Qj is conservative if Py = Qx. If F = Pi + Qj + Rk, how will you determine if F is conservative? Explain in detail your process and if any underlying conditions are required for your process to work.
Any help would be appreciated! Problem 4 Let (X, Y)~ N and Z = X1(XY > 0}-X1(XY < 0} (1) Find the distribution of Z (2) Show that the joint distribution of Y and Z is not bivariate normal.
1 point) Given that y -x is a solution of dy dx2 in x > 0, find another solution yc of ус the same equation such that (xy.) is a fundamental set of solutions
3. The following utility function is known as CES (constant elasticity of substi- tution) function where α > 0 β > 0 (a) Is this function homothetic? (b) How does the MRS,y depend on the ratio x/y? Specifically, show that the MRSy is strictly decreasing in the ratio x/y for all values δ < 1, increasing in the ratio x/y for all values δ > 1 and constant for δ 1. (c) Show that if x = y, the MRS...
4. Let X and Y have joint probability density function f(x,y) = 139264 oray3 if 0 < x, y < 4 and y> 4-1, otherwise. (a) Set up but do not compute an integral to find E(XY). (b) Let fx() be the marginal probability density function of X. Set up but do not compute an integral to find fx(x) when I <r54. (c) Set up but do not compute an integral to find P(Y > X).
9) Find the absolute maxima and minima of the function f(x,y) = x2 + xy + y2 on the square -8 < x,y 5 8
5. Let F(x, y, z) = (yz, xz, xy) and define 2 Crin = {(x,y,z) : x2 + y2 = r2, 2 = h} Show that for any r > 0 and h ER, le F. dx = 0 Crih