summaryrefslogtreecommitdiff
path: root/1475/CH1/EX1.24
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1475/CH1/EX1.24
downloadScilab-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.24')
-rwxr-xr-x1475/CH1/EX1.24/Example_1_24.sce11
-rwxr-xr-x1475/CH1/EX1.24/Output_1_24.PNGbin0 -> 6107 bytes
2 files changed, 11 insertions, 0 deletions
diff --git a/1475/CH1/EX1.24/Example_1_24.sce b/1475/CH1/EX1.24/Example_1_24.sce
new file mode 100755
index 000000000..4c5b6c71e
--- /dev/null
+++ b/1475/CH1/EX1.24/Example_1_24.sce
@@ -0,0 +1,11 @@
+//Example 1.24 X and Y stand in aline with 10 other people.
+clear;
+clc;
+N=factorial(12);
+disp(N,"total no. of ways in which 12 persons are arranged in a line =");
+M= 8*(2*factorial(10));
+disp(M,"No. of favourable cases such that there are 3 people between X and Y = ");
+// M= (1,5),(2,6),(3,7),(4,8),(5.9),(6,10),(7,11),(8,12)
+P=M/N;
+disp(P,"Probability that there are 3 people between X and Y= ");
+
diff --git a/1475/CH1/EX1.24/Output_1_24.PNG b/1475/CH1/EX1.24/Output_1_24.PNG
new file mode 100755
index 000000000..d7d86165d
--- /dev/null
+++ b/1475/CH1/EX1.24/Output_1_24.PNG
Binary files differ