From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2240/CH24/EX23.1/EX23_1.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 2240/CH24/EX23.1/EX23_1.sce (limited to '2240/CH24/EX23.1/EX23_1.sce') 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') -- cgit