diff options
Diffstat (limited to '1286/CH15/EX15.4/15_4.sce')
-rwxr-xr-x | 1286/CH15/EX15.4/15_4.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/1286/CH15/EX15.4/15_4.sce b/1286/CH15/EX15.4/15_4.sce new file mode 100755 index 000000000..bfe1734be --- /dev/null +++ b/1286/CH15/EX15.4/15_4.sce @@ -0,0 +1,11 @@ +clc
+//initialisation
+n=10
+a=0.6
+h=0
+//CALCULATIONS
+b=1-a
+p=factorial(n)*a^10/(factorial(n-h)*factorial(h))
+//results
+printf(' \n probability of heads occurence= % 1f ',a*10)
+printf(' \n probability of occuring head only in 10 throws= % 1f ',p)
|