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.24/Example_1_24.sce | 11 +++++++++++ 1475/CH1/EX1.24/Output_1_24.PNG | Bin 0 -> 6107 bytes 2 files changed, 11 insertions(+) create mode 100755 1475/CH1/EX1.24/Example_1_24.sce create mode 100755 1475/CH1/EX1.24/Output_1_24.PNG (limited to '1475/CH1/EX1.24') 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 Binary files /dev/null and b/1475/CH1/EX1.24/Output_1_24.PNG differ -- cgit