blob: fe621f7136e4f188bbba0759672bbbbd6144b8d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc;
// Chapter 2 Switched communication systems
//Example 2.9,page no 129
//given
N=5//no of switches
A=0.9//traffic offered
//grade of service B=(A^N/N!)/(1+A+A^2/2!+A^3/3!+...+A^N/N!)
//here
B=(A^N/factorial(N))/(1+A+(A^2/factorial(2))+(A^3/factorial(3))+(A^4/factorial(4))+(A^5/factorial(5)))
mprintf('grade of service is: %f\n',B)
Tl=A*B//traffic lost
mprintf('traffic lost is:%f',Tl)
|