summaryrefslogtreecommitdiff
path: root/116/CH12/EX12.1/exa12_1.sce
blob: 1032ecdda90a4412d6c8f4fc1673f22b1b63de5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

//Caption:Program to calculate how often do two calls arrive with less than 0.01 sec between them
 
//Example 12.1
 
//Page 524
 
disp('The average arrival rate is')

lam=(3600/10000)//arrivals per sec

disp('From equation 12.2, the probability on arrival in 0.01-sec interval is')//equation on page 524

P0=(%e^-0.0278)

disp('Thus 2.7% arrivals occur withnin 0.01 sec of the pervious arrival. Since the arrival rate is 2.78 arrivals per second, the rate of occurrence of intervarrival time less than 0.01 sec is')

2.78*0.027

disp("Result")
 
disp("0.075 times/sec")