blob: 9724692fcc70fa1a1719e79c4eb3e057ed09ed1e (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
R=[1/2 2/5 2/3];.........................//probability of drawing a red ball
a=1/3;..//probability of drawing any container
Den=sum(R)*a;
b=R(1)*a;
c=R(2)*a;
d=R(3)*a;
disp(b/Den,"ans1");
disp(c/Den,"ans2");
disp(d/Den,"ans3");
|