diff options
Diffstat (limited to '2240/CH24')
-rwxr-xr-x | 2240/CH24/EX23.1/EX23_1.sce | 26 | ||||
-rwxr-xr-x | 2240/CH24/EX23.2/EX23_2.sce | 27 |
2 files changed, 53 insertions, 0 deletions
diff --git a/2240/CH24/EX23.1/EX23_1.sce b/2240/CH24/EX23.1/EX23_1.sce new file mode 100755 index 000000000..da45da915 --- /dev/null +++ b/2240/CH24/EX23.1/EX23_1.sce @@ -0,0 +1,26 @@ +// Grob's Basic Electronics 11e
+// Chapter No. 23
+// Example No. 23_1
+clc; clear;
+// A 27-Ohms R is in series with 54 Ohms of Xl and 27 Ohms of Xc. The applied voltage Vt is 50 mV. Calculate ZT, I, and Theta z.
+
+// Given data
+
+R = 27; // Resistance=27 Ohms
+Xl = 54; // Inductive reactance=54 Ohms
+Vt = 50*10^-3; // Applied voltage=100 Volts
+Xc = 27; // Capacitive reactance=27 Ohms
+
+nXl = Xl-Xc; // Net Inductive reactance
+R1 = R*R;
+nXl1 = nXl*nXl;
+
+Zt = sqrt(R1+nXl1);
+disp (Zt,'Total Impedence Zt in Ohms')
+
+I = (Vt/Zt);
+disp (I, 'Current I in Ampers')
+disp ('i.e 1.31 mAmps')
+
+Oz = atand(Xc/R);
+disp (Oz, 'Theta z in Degree')
diff --git a/2240/CH24/EX23.2/EX23_2.sce b/2240/CH24/EX23.2/EX23_2.sce new file mode 100755 index 000000000..06c13a5a7 --- /dev/null +++ b/2240/CH24/EX23.2/EX23_2.sce @@ -0,0 +1,27 @@ +// Grob's Basic Electronics 11e
+// Chapter No. 23
+// Example No. 23_2
+clc; clear;
+// The following branch currents are supplied from a 50-mV source: Ir=1.8 mA; Il=2.8 mA; Ic=1 mA. Calculate It, Zeq, and Theta I.
+
+// Given data
+
+Va = 50*10^-3; // Applied voltage=50m Volts
+Ir = 1.8*10^-3; // Ir=1.8 mAmps
+Il = 2.8*10^-3; // Ir=2.8 mAmps
+Ic = 1*10^-3; // Ic=1 mAmps
+
+nI = Il-Ic; // net current
+Ir1 = Ir*Ir;
+nI1 = nI*nI;
+
+It = sqrt(Ir1+nI1);
+disp (It,'The Total Current It in Amps')
+disp ('i.e 2.55 mAmps')
+
+Zeq = Va/It;
+disp (Zeq,'The Equivqlent Impedence Zeq in Ohms')
+disp ('Appox 19.61 Ohms')
+
+Oz = atand(-(nI/Ir));
+disp (Oz, 'Theta z in Degree');
|