summaryrefslogtreecommitdiff
path: root/608/CH20/EX20.24/20_24.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.24/20_24.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.24/20_24.sce')
-rwxr-xr-x608/CH20/EX20.24/20_24.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/608/CH20/EX20.24/20_24.sce b/608/CH20/EX20.24/20_24.sce
new file mode 100755
index 000000000..bdd04556e
--- /dev/null
+++ b/608/CH20/EX20.24/20_24.sce
@@ -0,0 +1,24 @@
+//Problem 20.24: An a.c. source of 24 V and internal resistance 15 kohm is matched to a load by a 25:1 ideal transformer. Determine (a) the value of the load resistance and (b) the power dissipated in the load.
+
+//initializing the variables:
+tr = 25; // teurn ratio
+V = 24; // in Volts
+R1 = 15000; // in Ohms
+Rin = 15000; // in ohms
+
+//calculation:
+//Turns ratio, tr = N1/N2 = V1/V2
+//For maximum power transfer R1 needs to be equal to 15 kohm
+RL = R1/(tr^2)
+//The total input resistance when the source is connected to the matching transformer is
+Rt = Rin + R1
+//Primary current,
+I1 = V/Rt
+//N1/N2 = I2/I1
+I2 = I1*tr
+//Power dissipated in load resistor RL
+P = I2*I2*RL
+
+printf("\n\n Result \n\n")
+printf("\n (a) the load resistance is %.0f ohm", RL)
+printf("\n (b) power dissipated in the load resistor is %.2E W", P) \ No newline at end of file