summaryrefslogtreecommitdiff
path: root/1571/CH13/EX13.3/Chapter13_Example3.sce
blob: 6eb11b7500453b175a5c203cc76fefed94e2815c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear

//INPUT
n=12;//no.of particles
n1=8;
n2=4;

//CALCULATIONS
p=n*(n-1)*(n-2)*(n-3)/(n2*(n2-1)*(n2-2)*(2^n));//probability of distribution (8,4)

//OUTPUT
mprintf('probability of distribution (8,4) is %3.5f',p)