diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /608/CH24/EX24.10 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '608/CH24/EX24.10')
-rwxr-xr-x | 608/CH24/EX24.10/24_10.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/608/CH24/EX24.10/24_10.sce b/608/CH24/EX24.10/24_10.sce new file mode 100755 index 000000000..8114102c1 --- /dev/null +++ b/608/CH24/EX24.10/24_10.sce @@ -0,0 +1,24 @@ +//Problem 24.10: A 240 V, 50 Hz voltage is applied across a series circuit comprising a coil of resistance 12 ohm and inductance 0.10 H, and 120 μF capacitor. Determine the current flowing in the circuit.
+
+//initializing the variables:
+R = 12; // in ohms
+L = 0.10; // in henry
+C = 120E-6; // in Farads
+f = 50; // in Hz
+V = 240; // in volts
+
+//calculation:
+//Inductive reactance, XL
+XL = 2*%pi*f*L
+//Capacitive reactance, Xc
+Xc = 1/(2*%pi*f*C)
+//Circuit impedance Z
+Z = R + %i*(XL - Xc)
+I = V/Z
+phii = atan(imag(I)/real(I))*180/%pi
+phiv = 0 // in degrees
+phi = phiv - phii
+
+printf("\n\n Result \n\n")
+printf("\n the current flowing is %.2f + (%.2f)i A\n",real(I), imag(I))
+printf("and Circuit phase angle is %.2f°\n",phi)
\ No newline at end of file |