diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3542/CH9/EX9.6/Ex9_6.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3542/CH9/EX9.6/Ex9_6.sce')
-rw-r--r-- | 3542/CH9/EX9.6/Ex9_6.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/3542/CH9/EX9.6/Ex9_6.sce b/3542/CH9/EX9.6/Ex9_6.sce new file mode 100644 index 000000000..856823f85 --- /dev/null +++ b/3542/CH9/EX9.6/Ex9_6.sce @@ -0,0 +1,20 @@ +// Example no 9.6
+// To determine the maximum throughput using ALOHA and slotted ALOHA
+// Page no. 466
+
+clc;
+clear all;
+
+//The maximum throughput using ALOHA
+Rmax=1/2; //Maximum rate of arrival calculated by equating ALOHA throughput formula derivative to zero
+T=Rmax*exp(-1); //The maximum throughput using ALOHA
+
+// Displaying the result in command window
+printf('\n The maximum throughput using ALOHA = %0.4f',T);
+
+//The maximum throughput using slotted ALOHA
+Rmax=1; //Maximum rate of arrival calculated by equating slotted ALOHA throughput formula derivative to zero
+T=Rmax*exp(-1); //The maximum throughput using slotted ALOHA
+
+// Displaying the result in command window
+printf('\n The maximum throughput using slotted ALOHA = %0.4f',T);
|