summaryrefslogtreecommitdiff
path: root/2183/CH9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2183/CH9
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')
-rwxr-xr-x2183/CH9/EX9.1/Ex_9_1.sce9
-rwxr-xr-x2183/CH9/EX9.2/Ex_9_2.sce15
-rwxr-xr-x2183/CH9/EX9.3/Ex_9_3.sce12
-rwxr-xr-x2183/CH9/EX9.4/Ex_9_4.sce12
-rwxr-xr-x2183/CH9/EX9.5.a/Ex_9_5_a.sce25
-rwxr-xr-x2183/CH9/EX9.5.b/Ex_9_5_b.sce26
-rwxr-xr-x2183/CH9/EX9.6/Ex_9_6.sce17
-rwxr-xr-x2183/CH9/EX9.7/Ex_9_7.sce8
8 files changed, 124 insertions, 0 deletions
diff --git a/2183/CH9/EX9.1/Ex_9_1.sce b/2183/CH9/EX9.1/Ex_9_1.sce
new file mode 100755
index 000000000..82edba842
--- /dev/null
+++ b/2183/CH9/EX9.1/Ex_9_1.sce
@@ -0,0 +1,9 @@
+// Example 9.1;//maximum termperature change
+clc;
+clear;
+close;
+f=0.15;//GHz
+fc=18;//GHz/degree celsius
+ta=f/fc;//
+disp(ta,"maximum temperature change alowed in degree celsius is")
+
diff --git a/2183/CH9/EX9.2/Ex_9_2.sce b/2183/CH9/EX9.2/Ex_9_2.sce
new file mode 100755
index 000000000..150bf973d
--- /dev/null
+++ b/2183/CH9/EX9.2/Ex_9_2.sce
@@ -0,0 +1,15 @@
+// Example 9.2;//bandwidth
+clc;
+clear;
+close;
+snl=-55.45;//dBm
+ps=10^(snl/10);//
+n=0.8;//
+h=1.54;//micro meter
+hc=6.63*10^-34;//
+c=3*10^8;//m/s
+sndb=12;//
+sn=10^(sndb/10);//
+b=((n*ps*10^-3*h*10^-6)/(hc*c*sn));//
+disp(b*10^-9,"bandwidth in GHz is")
+//answer is wrong in the textbook
diff --git a/2183/CH9/EX9.3/Ex_9_3.sce b/2183/CH9/EX9.3/Ex_9_3.sce
new file mode 100755
index 000000000..ab0f6f175
--- /dev/null
+++ b/2183/CH9/EX9.3/Ex_9_3.sce
@@ -0,0 +1,12 @@
+// Example 9.3;//number of received photos
+clc;
+clear;
+close;
+ber=10^-9;//
+x=-2*log10(ber);//
+np1=4*x;//no. of received photons for ASK heterodyne sysnchronous detection
+np2=-4*log(2*ber);//no. of received photons for ASK heterodyne non-sysnchronous detection
+np3=x/2;//no. of received photons for PSK homodyne detection
+disp(round(np1),"no. of received photons for ASK heterodyne sysnchronous detection")
+disp(round(np2),"no. of received photons for ASK heterodyne non-sysnchronous detection")
+disp(round(np3),"no. of received photons for PSK homodyne detection")
diff --git a/2183/CH9/EX9.4/Ex_9_4.sce b/2183/CH9/EX9.4/Ex_9_4.sce
new file mode 100755
index 000000000..81814be17
--- /dev/null
+++ b/2183/CH9/EX9.4/Ex_9_4.sce
@@ -0,0 +1,12 @@
+// Example 9.4 //minimum incoming power level
+clc;
+clear;
+close;
+ber=10^-9;//
+x=-2*log10(ber);//
+hc=6.63*10^-34;//
+c=3*10^8;//m/s
+bt=500;//Mbits/s
+h=1.55;//micro meter
+ps=((x*2*hc*c*bt*10^6)/(h*10^-6));//nW
+disp(ps*10^9,"minimum incoming power level in nano Watts is")
diff --git a/2183/CH9/EX9.5.a/Ex_9_5_a.sce b/2183/CH9/EX9.5.a/Ex_9_5_a.sce
new file mode 100755
index 000000000..3ef3839be
--- /dev/null
+++ b/2183/CH9/EX9.5.a/Ex_9_5_a.sce
@@ -0,0 +1,25 @@
+// Example 9.5.a;//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 (ASK) in km is")
+bt1=1;//Gbit/s
+ps1=((x1*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 (ASK) in km is")
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
diff --git a/2183/CH9/EX9.6/Ex_9_6.sce b/2183/CH9/EX9.6/Ex_9_6.sce
new file mode 100755
index 000000000..108c73b98
--- /dev/null
+++ b/2183/CH9/EX9.6/Ex_9_6.sce
@@ -0,0 +1,17 @@
+//Example 9.6 // refractive index and 3dB spectral bandwidth
+clc;
+clear;
+close;
+//given data :
+lamda=1.5*10^-6;// in m
+L=300*10^-6;// in m
+del_lamda=10^-9;// in m
+n=lamda^2/(2*del_lamda*L);
+disp(n,"refractive index , n = ")
+R1=0.3;
+R2=R1;
+a=4.8;// in dB
+Gs=10^(4.8/10);
+c=3*10^8;
+B=(c/(%pi*n*L)*asin((1-sqrt(R1*R2)*Gs)/(2*sqrt(sqrt(R1*R2)*Gs))))*10^-9;
+disp(B," Spectral bandwidth,(GHz) = ")
diff --git a/2183/CH9/EX9.7/Ex_9_7.sce b/2183/CH9/EX9.7/Ex_9_7.sce
new file mode 100755
index 000000000..9650a1ba7
--- /dev/null
+++ b/2183/CH9/EX9.7/Ex_9_7.sce
@@ -0,0 +1,8 @@
+//Example 9.7// cavity gain
+clc;
+clear;
+close;
+x=0.5;//
+y=(1-(sqrt(x)))/(1+sqrt(x));//
+g=(y/(1-y)^2);//
+disp("cavity gain is "+string(g)+"/(sqrt(R1*R2))")