diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /116/CH12/EX12.1/exa12_1.sce | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '116/CH12/EX12.1/exa12_1.sce')
-rwxr-xr-x | 116/CH12/EX12.1/exa12_1.sce | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/116/CH12/EX12.1/exa12_1.sce b/116/CH12/EX12.1/exa12_1.sce index 1032ecdda..b604ac666 100755 --- a/116/CH12/EX12.1/exa12_1.sce +++ b/116/CH12/EX12.1/exa12_1.sce @@ -1,23 +1,21 @@ -
-//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")
+ +//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")
\ No newline at end of file |