summaryrefslogtreecommitdiff
path: root/1475/CH2/EX2.23
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1475/CH2/EX2.23
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/CH2/EX2.23')
-rwxr-xr-x1475/CH2/EX2.23/Example_2_23.sce8
-rwxr-xr-x1475/CH2/EX2.23/Output_2_23.PNGbin0 -> 2571 bytes
2 files changed, 8 insertions, 0 deletions
diff --git a/1475/CH2/EX2.23/Example_2_23.sce b/1475/CH2/EX2.23/Example_2_23.sce
new file mode 100755
index 000000000..b7a69841a
--- /dev/null
+++ b/1475/CH2/EX2.23/Example_2_23.sce
@@ -0,0 +1,8 @@
+//Example 2.23 A dice is rolled 6 times
+clc;
+clear;
+p=1/6;
+n=6;
+x=1;
+probab=(factorial(n)*p*p*p*p*p*p)/(factorial(x)*factorial(x)*factorial(x)*factorial(x)*factorial(x)*factorial(x));
+disp(probab,"the required probability",n,"No. of independent trials");
diff --git a/1475/CH2/EX2.23/Output_2_23.PNG b/1475/CH2/EX2.23/Output_2_23.PNG
new file mode 100755
index 000000000..48292cad5
--- /dev/null
+++ b/1475/CH2/EX2.23/Output_2_23.PNG
Binary files differ