summaryrefslogtreecommitdiff
path: root/24/CH21/EX21.5/Example21_5.sce
blob: ae2cf941a5931ae9f857967eae222fb63eeb7585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Given that
n = 100

//Sample Problem 21-5a
printf("**Sample Problem 21-5a**\n")
n1 = 50
n2 = 50
W = factorial(n)/(factorial(n1)*factorial(n2))
printf("The total number of possible configuration is %e\n", W)

//Sample Problem 21-5b
printf("\n**Sample Problem 21-5b**\n")
n1 = 100
n2 = 0
W = factorial(n)/(factorial(n1)*factorial(n2))
printf("The total number of possible configuration is %e", W)