tuappr Enter matrix [a b] of X-range endpoints [-1 1] Enter matrix [c d] of Y-range endpoints [0 1] Enter number of X approximation points 400 Enter number of Y approximation points 200 Enter expressi...tuappr Enter matrix [a b] of X-range endpoints [-1 1] Enter matrix [c d] of Y-range endpoints [0 1] Enter number of X approximation points 400 Enter number of Y approximation points 200 Enter expression for joint density 12*u.*t.^2.*((u<=t+1)&(u>=t)) Use array operations on X, Y, PX, PY, t, u, and P p1 = total((t<=1/2).*P) p1 = 0.4098 % Theoretical = 33/80 = 0.4125 M2 = (t<1/2)&(u<=1/2); p2 = total(M2.*P) p2 = 0.1856 % Theoretical = 3/16 = 0.1875 P3 = total((u>=1/2).*P) P3 = 0.8144 % Theoretica…