summaryrefslogtreecommitdiff
path: root/752/CH1/EX1.2.4/1_2_4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /752/CH1/EX1.2.4/1_2_4.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 '752/CH1/EX1.2.4/1_2_4.sce')
-rwxr-xr-x752/CH1/EX1.2.4/1_2_4.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/752/CH1/EX1.2.4/1_2_4.sce b/752/CH1/EX1.2.4/1_2_4.sce
new file mode 100755
index 000000000..50d2069ea
--- /dev/null
+++ b/752/CH1/EX1.2.4/1_2_4.sce
@@ -0,0 +1,15 @@
+clc;
+// page no 9
+// prob no 1_2_4
+//As given in fig. 1.2.4 L-attenuator with source resistance Rs=75 ohm and load resistance Rl=50 ohm
+Rs=75; Rl=50;
+//Determination of R1
+R1=(Rs*(Rs-Rl))^(1/2);
+disp('ohm',R1,+'The value of resistance R1 is');
+//Determination of R3
+R3=((Rs^2)-(R1^2))/R1;
+disp('ohm',R3,+'The value of resistance R3 is');
+//Determination of insertion loss
+IL=(R3*(Rs+R1))/((Rs+R1+R3)*(R3+R1)-(R3)^2)
+ILdB=-20*log10(IL);//convertion of power in decibels
+disp('dB',ILdB,+'The value of insertion loss is'); \ No newline at end of file