summaryrefslogtreecommitdiff
path: root/1475/CH1/EX1.31/Example_1_31.sce
diff options
context:
space:
mode:
Diffstat (limited to '1475/CH1/EX1.31/Example_1_31.sce')
-rwxr-xr-x1475/CH1/EX1.31/Example_1_31.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1475/CH1/EX1.31/Example_1_31.sce b/1475/CH1/EX1.31/Example_1_31.sce
new file mode 100755
index 000000000..a80767ec4
--- /dev/null
+++ b/1475/CH1/EX1.31/Example_1_31.sce
@@ -0,0 +1,9 @@
+//Example 1.31 10 dissimilar balls are distributed at random into 4 boxes ar marked A B C D
+clc;
+clear;
+N=4^10;
+disp(N,"total no. of possible ways of distribution =");
+M= (factorial(10)/(factorial(2)*factorial(4)*factorial(4)*factorial(0)));
+disp(M,"No. of favourable cases such that 4 boxes contain respectively 2,4,4,0 balls =");
+P=M/N;
+disp(P," The required Probability is = ");