diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3872/CH2/EX2.2 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3872/CH2/EX2.2')
-rw-r--r-- | 3872/CH2/EX2.2/EX2_2.jpg | bin | 0 -> 16961 bytes | |||
-rw-r--r-- | 3872/CH2/EX2.2/EX2_2.sce | 26 |
2 files changed, 26 insertions, 0 deletions
diff --git a/3872/CH2/EX2.2/EX2_2.jpg b/3872/CH2/EX2.2/EX2_2.jpg Binary files differnew file mode 100644 index 000000000..e46c2ac7f --- /dev/null +++ b/3872/CH2/EX2.2/EX2_2.jpg diff --git a/3872/CH2/EX2.2/EX2_2.sce b/3872/CH2/EX2.2/EX2_2.sce new file mode 100644 index 000000000..7a01ddca2 --- /dev/null +++ b/3872/CH2/EX2.2/EX2_2.sce @@ -0,0 +1,26 @@ +//Book - Power System: Analysis & Design 5th Edition
+//Authors - J. Duncan Glover, Mulukutla S. Sarma, and Thomas J. Overbye
+//Chapter - 2 ; Example 2.2
+//Scilab Version - 6.0.0 ; OS - Windows
+
+
+clc;
+clear;
+V=100*exp(%i*130*%pi/180); //Source Voltage in Volts
+I=10*exp(%i*10*%pi/180); //Source current in Amperes
+S=V*conj(I); //Apparent power in VA
+P=real(S); //Real power in Watts
+Q=imag(S); //Reactive power in VAR
+printf('The values are P=%d Watts and Q=%d VAR. Hence,',P,Q);
+if P<0 then
+ P=-P
+ printf('\nThe source absorbs %d Watts',P);
+else
+ printf('\nThe source delivers %d Watts',P);
+end
+if Q<0 then
+ Q=-Q;
+ printf('\nThe source absorbs %d VAR',Q);
+else
+ printf('\nThe source delivers %d VAR',Q);
+end
|