summaryrefslogtreecommitdiff
path: root/1475/CH1/EX1.49/Example_1_49.sce
diff options
context:
space:
mode:
Diffstat (limited to '1475/CH1/EX1.49/Example_1_49.sce')
-rwxr-xr-x1475/CH1/EX1.49/Example_1_49.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/1475/CH1/EX1.49/Example_1_49.sce b/1475/CH1/EX1.49/Example_1_49.sce
new file mode 100755
index 000000000..eaa17c13e
--- /dev/null
+++ b/1475/CH1/EX1.49/Example_1_49.sce
@@ -0,0 +1,8 @@
+// Example 1.49 A bag contains 8 red and 5 white balls.
+clc;
+clear;
+N1=(factorial(13)/(factorial(10)*factorial(3)));
+M1=(factorial(8)/(factorial(0)*factorial(8)))*(factorial(5)/(factorial(2)*factorial(3)));
+N2=(factorial(10)/(factorial(7)*factorial(3)));
+M2=(factorial(8)/(factorial(5)*factorial(3)))*(factorial(2)/(factorial(0)*factorial(2)));
+disp((M1/N1)*(M2/N2),"Probability that first drawing will give 3 white balls and the second 3 red balls=",M2, "No. of ways to select 3 red balls from remaining 8 red and 2 white balls=",N2,"No . of ways of selecting 3 balls of remaining 10 balls =",M1, "No. of ways to select 3 white balls from 8 red and 5 white balls=",N1,"No . of ways of selecting 3 balls of remaining 13 balls =");