diff options
Diffstat (limited to '1286/CH15/EX15.3')
-rwxr-xr-x | 1286/CH15/EX15.3/15_3.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/1286/CH15/EX15.3/15_3.sce b/1286/CH15/EX15.3/15_3.sce new file mode 100755 index 000000000..9c7dbcba8 --- /dev/null +++ b/1286/CH15/EX15.3/15_3.sce @@ -0,0 +1,9 @@ +clc
+//initialisation
+n=12
+p=2
+//CALCULATIONS
+t=n/p
+a=factorial(n)/(factorial(t)*factorial(n-t)*p^n)
+//results
+printf(' \n probability= % 1f ',a)
|