summaryrefslogtreecommitdiff
path: root/1286/CH15/EX15.5/15_5.sce
blob: d57ac864bc87a8936910967cec472377a7d95e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
//initialisation
n=400
a1=300
b1=100
a2=200
b2=200
r=2
//CALCULATIONS
p1=factorial(n)/(factorial(a1)*factorial(b1)*r^n)
p2=factorial(n)/(factorial(a2)*factorial(b2)*r^n)
w=p1/p2
//results
printf(' \n ratio of probabilities= % 1e ',w)