summaryrefslogtreecommitdiff
path: root/1938/CH2/EX2.24/2_24.sce
diff options
context:
space:
mode:
Diffstat (limited to '1938/CH2/EX2.24/2_24.sce')
-rwxr-xr-x1938/CH2/EX2.24/2_24.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1938/CH2/EX2.24/2_24.sce b/1938/CH2/EX2.24/2_24.sce
new file mode 100755
index 000000000..9f3b5ebd8
--- /dev/null
+++ b/1938/CH2/EX2.24/2_24.sce
@@ -0,0 +1,16 @@
+clc,clear
+printf('Example 2.24\n\n')
+
+R_t=1 //R_t = R_se + R_a
+V_1= 230
+N_1=300,N_2=375
+I_1=15, I_a1=I_1
+
+//T (prop.) I_a^2 and T (prop.) N_2....therefore I_a^2 (prop.) N^2
+I_a2=I_a1 *(N_2/N_1)
+E_b1 = V_1 - I_a1*(R_t)
+
+//N (prop.) E_b/I_a
+E_b2= E_b1*(I_a2/I_a1)*(N_2/N_1)
+V_2=E_b2 + I_a2* (R_t) //because E_b2 = V_2 - I_a2*(R_a+R_se)
+printf('Voltage supply needed = %.4f V',V_2)