summaryrefslogtreecommitdiff
path: root/2183/CH9/EX9.5.b/Ex_9_5_b.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2183/CH9/EX9.5.b/Ex_9_5_b.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 '2183/CH9/EX9.5.b/Ex_9_5_b.sce')
-rwxr-xr-x2183/CH9/EX9.5.b/Ex_9_5_b.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/2183/CH9/EX9.5.b/Ex_9_5_b.sce b/2183/CH9/EX9.5.b/Ex_9_5_b.sce
new file mode 100755
index 000000000..e22050452
--- /dev/null
+++ b/2183/CH9/EX9.5.b/Ex_9_5_b.sce
@@ -0,0 +1,26 @@
+// Example 9.5.B;//maximum repeater spacing
+clc;
+clear;
+close;
+ber=10^-9;//
+x1=-2*log10(ber);//
+hc=6.63*10^-34;//
+c=3*10^8;//m/s
+bt=50;//Mbits/s
+h=1.55;//micro meter
+ps=(((x1/2)*hc*c*bt*10^6)/(h*10^-6));//nW
+psdb=10*log10(ps*10^3);//
+cl=0.25;//dB/km
+x=4;//dBm
+y=x-psdb;//
+mrs1=y/cl;//km
+disp(mrs1,"maximum repeater spacing in km at 50 M-bit/s system (PSK) in km is")
+bt1=1;//Gbit/s
+ps1=(((x1/2)*2*hc*c*bt1*10^9)/(h*10^-6));//nW
+psdb1=10*log10(ps1*10^3);//
+cl=0.25;//dB/km
+x=4;//dBm
+y1=x-psdb1;//
+mrs2=y1/cl;//km
+disp(mrs2,"maximum repeater spacing in km at 1 G-bit/s system (PSK) in km is")
+//for 1 Gbit/s systme answer is wrong in the textbook