summaryrefslogtreecommitdiff
path: root/608/CH35/EX35.08/35_08.sce
diff options
context:
space:
mode:
Diffstat (limited to '608/CH35/EX35.08/35_08.sce')
-rwxr-xr-x608/CH35/EX35.08/35_08.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/608/CH35/EX35.08/35_08.sce b/608/CH35/EX35.08/35_08.sce
new file mode 100755
index 000000000..027923f80
--- /dev/null
+++ b/608/CH35/EX35.08/35_08.sce
@@ -0,0 +1,14 @@
+//Problem 35.08: A generator has an output impedance of (450 + i60) ohm. Determine the turns ratio of an ideal transformer necessary to match the generator to a load of (40 + i19) ohm for maximum transfer of power.
+
+//initializing the variables:
+Zo = 450 + %i*60; // in ohm
+ZL = 40 + %i*19; // in ohm
+
+//calculation:
+//transformer turns ratio tr = (N1/N2)
+Zomag = (real(Zo)^2 + imag(Zo)^2)^0.5
+ZLmag = (real(ZL)^2 + imag(ZL)^2)^0.5
+tr = (Zomag/ZLmag)^0.5
+
+printf("\n\n Result \n\n")
+printf("\n the transformer turns ratio is %.2f",tr) \ No newline at end of file