summaryrefslogtreecommitdiff
path: root/608/CH41/EX41.10/41_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '608/CH41/EX41.10/41_10.sce')
-rwxr-xr-x608/CH41/EX41.10/41_10.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/608/CH41/EX41.10/41_10.sce b/608/CH41/EX41.10/41_10.sce
new file mode 100755
index 000000000..101d321ff
--- /dev/null
+++ b/608/CH41/EX41.10/41_10.sce
@@ -0,0 +1,20 @@
+//Problem 41.10: The attenuator shown in Figure 41.15 feeds a matched load. Determine (a) the characteristic impedance R0, and (b) the insertion loss in decibels.
+
+//initializing the variables:
+R1 = 300; // in ohm
+R2 = 450; // in ohm
+I1 = 1; // in ampere (lets say)
+
+//calculation:
+//the characteristic impedance of a symmetric T-pad attenuator is given by
+R0 = (R1^2 + 2*R1*R2)^0.5
+//By current division
+//current I2
+I2 = (R2/(R2 + R1+ R0))*I1
+ri = I1/I2; // ratio of currents
+//insertion loss
+il = 20*log10(ri)
+
+printf("\n\n Result \n\n")
+printf("\n the characteristic impedance is %.0f ohm",R0)
+printf("\n insertion loss is %.2f dB",il) \ No newline at end of file