summaryrefslogtreecommitdiff
path: root/116/CH12/EX12.2/exa12_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /116/CH12/EX12.2/exa12_2.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-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.2/exa12_2.sce')
-rwxr-xr-x116/CH12/EX12.2/exa12_2.sce66
1 files changed, 32 insertions, 34 deletions
diff --git a/116/CH12/EX12.2/exa12_2.sce b/116/CH12/EX12.2/exa12_2.sce
index 638ae0ef0..e5e5dd433 100755
--- a/116/CH12/EX12.2/exa12_2.sce
+++ b/116/CH12/EX12.2/exa12_2.sce
@@ -1,35 +1,33 @@
-
-//Caption:Program to calculate the probability that eight or more arrivals occur in an chosen 30 sec
-
-//Example 12.2
-
-//Page 526
-
-disp('The average number of arrivals in a 30 sec interval is,')
-
-lamt=4*(30/60)
-
-disp('The probability of eight or more arrivals is,')
-
-P0=1
-
-P1=[(2^1)/(1)]
-
-P2=[(2^2)/(1*2)]
-
-P3=[(2^3)/(1*2*3)]
-
-P4=[(2^4)/(1*2*3*4)]
-
-P5=[(2^5)/(1*2*3*4*5)]
-
-P6=[(2^6)/(1*2*3*4*5*6)]
-
-P7=[(2^7)/(1*2*3*4*5*6*7)]
-
-i=1-{(%e^-2)*[P0+P1+P2+P3+P4+P5+P6+P7]}
-
-disp("Result")
-
-disp("P(2) = 0.0011")
+
+//Example 12.2
+
+//Page 526
+
+disp('The average number of arrivals in a 30 sec interval is,')
+
+lamt=4*(30/60)
+
+disp('The probability of eight or more arrivals is,')
+
+P0=1
+
+P1=[(2^1)/(1)]
+
+P2=[(2^2)/(1*2)]
+
+P3=[(2^3)/(1*2*3)]
+
+P4=[(2^4)/(1*2*3*4)]
+
+P5=[(2^5)/(1*2*3*4*5)]
+
+P6=[(2^6)/(1*2*3*4*5*6)]
+
+P7=[(2^7)/(1*2*3*4*5*6*7)]
+
+i=1-{(%e^-2)*[P0+P1+P2+P3+P4+P5+P6+P7]}
+
+disp("Result")
+
+disp("P(2) = 0.0011")
\ No newline at end of file