summaryrefslogtreecommitdiff
path: root/2240/CH24/EX23.1/EX23_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2240/CH24/EX23.1/EX23_1.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 '2240/CH24/EX23.1/EX23_1.sce')
-rwxr-xr-x2240/CH24/EX23.1/EX23_1.sce26
1 files changed, 26 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')