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/CH25/EX25.03/25_03.sce | |
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/CH25/EX25.03/25_03.sce')
-rwxr-xr-x | 608/CH25/EX25.03/25_03.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/608/CH25/EX25.03/25_03.sce b/608/CH25/EX25.03/25_03.sce new file mode 100755 index 000000000..fc8cf8df1 --- /dev/null +++ b/608/CH25/EX25.03/25_03.sce @@ -0,0 +1,26 @@ +//Problem 25.03: The admittance of a circuit is (0.040 + i0.025) S. Determine the values of the resistance and the capacitive reactance of the circuit if they are connected (a) in parallel, (b) in series. Draw the phasor diagram for each of the circuits.
+
+//initializing the variables:
+Y = 0.040 - %i*0.025; // in S
+
+//calculation:
+//impedance, Z
+Z = 1/Y
+//conductance, G
+G = real(Y)
+//Suspectance, Bc
+Bc = abs(imag(Y))
+//parallrl
+//resistance, R
+Rp = 1/G
+//capacitive reactance
+Xcp = 1/Bc
+//series
+//resistance, R
+Rs = real(Z)
+//capacitive reactance
+Xcs = abs(imag(Z))
+
+printf("\n\n Result \n\n")
+printf("\n (a)for parallel, resistance,R is %.0f ohm and capacitive reactance, Xc is %.0f ohm ",Rp,Xcp)
+printf("\n (b)forseries, resistance,R is %.2f ohm and capacitive reactance, Xc is %.2f ohm ",Rs,Xcs)
\ No newline at end of file |