From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1475/CH1/EX1.31/Example_1_31.sce | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 1475/CH1/EX1.31/Example_1_31.sce (limited to '1475/CH1/EX1.31/Example_1_31.sce') 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 = "); -- cgit