diff options
Diffstat (limited to '803/CH8/EX8.2/ex8_2.sce')
-rw-r--r-- | 803/CH8/EX8.2/ex8_2.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/803/CH8/EX8.2/ex8_2.sce b/803/CH8/EX8.2/ex8_2.sce new file mode 100644 index 000000000..9724692fc --- /dev/null +++ b/803/CH8/EX8.2/ex8_2.sce @@ -0,0 +1,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");
|