summaryrefslogtreecommitdiff
path: root/1286/CH15/EX15.3/15_3.sce
blob: 9c7dbcba8efc22afa8dca2d147c350dd37acbfb4 (plain)
1
2
3
4
5
6
7
8
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)