summaryrefslogtreecommitdiff
path: root/2606/CH8/EX8.18/ex8_18.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2606/CH8/EX8.18/ex8_18.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2606/CH8/EX8.18/ex8_18.sce')
-rwxr-xr-x2606/CH8/EX8.18/ex8_18.sce38
1 files changed, 38 insertions, 0 deletions
diff --git a/2606/CH8/EX8.18/ex8_18.sce b/2606/CH8/EX8.18/ex8_18.sce
new file mode 100755
index 000000000..b5d017359
--- /dev/null
+++ b/2606/CH8/EX8.18/ex8_18.sce
@@ -0,0 +1,38 @@
+//Page Number: 8.18
+//Example 8.18
+clc;
+//Given,
+
+Fa=5; //dB
+d=200; //Km
+a=2; //dB/Km
+No=4D-21; //W/Hz
+BW=4000;
+Osnr=30; //dB
+//(a) No repeaters used
+L=d*a; //dB
+disp('dB',L,'Noise figure:');
+
+//As Output SNR=InputSNR/F where F=L*Fa
+//And Input SNR=(Pt/(No*B))
+//Therefore,PT=Output SNR+L+Fa+(No*B)
+
+NoB=10*log10(No*BW);
+
+//Power Transmitted
+Pt=Osnr+L+Fa+(NoB);
+
+PtdB=10^(Pt/10);
+disp('W',PtdB,'Power transmitted with no repeaters');
+
+//(b)20 repeaters are employed
+n=20;
+//F becomes 20F
+//Output SNR=InputSNR/20*F where F=L*Fa
+L1=L/n; //dB per segment
+
+//Power Transmitted
+Pt1=Osnr+L1+Fa+(NoB)+(10*(log10(n)));
+
+PtdB1=10^(Pt1/10);
+disp('W',PtdB1,'Power transmitted with 20 repeaters');