diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1475/CH1/EX1.31/Example_1_31.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1475/CH1/EX1.31/Example_1_31.sce')
-rwxr-xr-x | 1475/CH1/EX1.31/Example_1_31.sce | 9 |
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 = ");
|