summaryrefslogtreecommitdiff
path: root/3543/CH7/EX7.44/EX7_44.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3543/CH7/EX7.44/EX7_44.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3543/CH7/EX7.44/EX7_44.sce')
-rw-r--r--3543/CH7/EX7.44/EX7_44.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/3543/CH7/EX7.44/EX7_44.sce b/3543/CH7/EX7.44/EX7_44.sce
new file mode 100644
index 000000000..99f0108c3
--- /dev/null
+++ b/3543/CH7/EX7.44/EX7_44.sce
@@ -0,0 +1,34 @@
+// Example 7.42
+// Calculation of a)excess loss,b)insertion loss,c)crosstalk and d)split ratio for the device.
+// Page no 498
+
+clc;
+clear;
+close;
+
+//Given data
+P1=116.3*10^-6; // Power launched in port 1
+P2=0.082*10^-6; // Power launched in port 2
+P3=47*10^-6; // Power launched in port 3
+P4=52*10^-6; // Power launched in port 4
+
+// a)Excess loss
+E=10*log10(P1/(P3+P4));
+//b)Insertion loss
+I1=10*log10(P1/P3);
+I2=10*log10(P1/P4);
+
+//c)Crosstalk
+C=10*log10(P2/P1);
+
+//d)Split ratio
+S=(P3/(P3+P4))*100;
+
+
+//Displaying results in the command window
+printf("\n Excess loss(in dB) = %0.1f ",E);
+printf("\n Insertion loss(in dB) = %0.3f ",I1);
+printf("\n Insertion loss (in dB)= %0.2f ",I2);
+printf("\n Crosstalk (in dB)= %0.2f ",C);
+printf("\n Split ratio(in percentage) = %0.2f ",S);
+// The answers vary due to round off error