summaryrefslogtreecommitdiff
path: root/608/CH41/EX41.12/41_12.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /608/CH41/EX41.12/41_12.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 '608/CH41/EX41.12/41_12.sce')
-rwxr-xr-x608/CH41/EX41.12/41_12.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/608/CH41/EX41.12/41_12.sce b/608/CH41/EX41.12/41_12.sce
new file mode 100755
index 000000000..b0864b6be
--- /dev/null
+++ b/608/CH41/EX41.12/41_12.sce
@@ -0,0 +1,21 @@
+//Problem 41.12: A symmetrical pi-attenuator pad has a series arm of resistance 1000 ohm and shunt arms each of 500ohm . Determine (a) its characteristic impedance, and (b) the insertion loss (in decibels) when feeding a matched load..
+
+//initializing the variables:
+R1 = 1000; // in ohm
+R2 = 500; // in ohm
+I1 = 1; // in amperes (lets say)
+
+//calculation:
+//characteristic impedance of a symmetrical attenuator
+R0 = (R1*(R2^2)/(R1 + 2*R2))^0.5
+//current Ix
+Ix = (R2/(R2 + R1 + (R2*R0/(R2 + R0))))*I1
+//current I2
+I2 = (R2/(R2 + R0))*Ix
+ri = I1/I2; // retio of currents
+//insertion loss
+il = 20*log10(ri)
+
+printf("\n\n Result \n\n")
+printf("\n characteristic impedance is %.0f ohm",R0)
+printf("\n insertion loss is %.2f dB",il) \ No newline at end of file