summaryrefslogtreecommitdiff
path: root/608/CH20/EX20.21/20_21.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /608/CH20/EX20.21/20_21.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/CH20/EX20.21/20_21.sce')
-rwxr-xr-x608/CH20/EX20.21/20_21.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/608/CH20/EX20.21/20_21.sce b/608/CH20/EX20.21/20_21.sce
new file mode 100755
index 000000000..67d67f53c
--- /dev/null
+++ b/608/CH20/EX20.21/20_21.sce
@@ -0,0 +1,14 @@
+//Problem 20.21: The output stage of an amplifier has an output resistance of 112 ohm. Calculate the optimum turns ratio of a transformer which would match a load resistance of 7 ohm to the output resistance of the amplifier.
+
+//initializing the variables:
+R1 = 112; // in Ohms
+RL = 7; // in Ohms
+
+//calculation:
+//The equivalent input resistance, R1 of the transformer needs to be 112 ohm for maximum power transfer.
+//R1 = RL*(tr^2)
+// tr = N1/N2 turn ratio
+tr = (R1/RL)^0.5
+
+printf("\n\n Result \n\n")
+printf("\n the optimum turns ratio is %.0f ", tr) \ No newline at end of file