summaryrefslogtreecommitdiff
path: root/1475/CH1/EX1.48
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.48
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.48')
-rwxr-xr-x1475/CH1/EX1.48/Example_1_48.sce7
-rwxr-xr-x1475/CH1/EX1.48/Output_1_48.PNGbin0 -> 7938 bytes
2 files changed, 7 insertions, 0 deletions
diff --git a/1475/CH1/EX1.48/Example_1_48.sce b/1475/CH1/EX1.48/Example_1_48.sce
new file mode 100755
index 000000000..82e272d6b
--- /dev/null
+++ b/1475/CH1/EX1.48/Example_1_48.sce
@@ -0,0 +1,7 @@
+// Example 1.48 Five men in a compan of 20 are graduated
+clc;
+clear;
+N=factorial(20)/(factorial(3)*factorial(17));
+M1=(factorial(5)/(factorial(2)*factorial(3)))*(factorial(15)/(factorial(0)*factorial(15)));
+M2=(factorial(5)/(factorial(0)*factorial(5)))*(factorial(15)/(factorial(3)*factorial(12)));
+disp(1-(M2/N),"Probab. taht atleast one is graduate =",M1/N,"Probab. that all 3 are graduate =",M2,"No. of ways to select 3 men such that no one is Graduate=",M1,"No. of ways to select 3 men such that they are Graduate=",N,"No. of ways of selecting =");
diff --git a/1475/CH1/EX1.48/Output_1_48.PNG b/1475/CH1/EX1.48/Output_1_48.PNG
new file mode 100755
index 000000000..e042ce1e1
--- /dev/null
+++ b/1475/CH1/EX1.48/Output_1_48.PNG
Binary files differ