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 /3673/CH6/EX6.a.2/Example_a_6_2.sce | |
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 '3673/CH6/EX6.a.2/Example_a_6_2.sce')
-rw-r--r-- | 3673/CH6/EX6.a.2/Example_a_6_2.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/3673/CH6/EX6.a.2/Example_a_6_2.sce b/3673/CH6/EX6.a.2/Example_a_6_2.sce new file mode 100644 index 000000000..23575d587 --- /dev/null +++ b/3673/CH6/EX6.a.2/Example_a_6_2.sce @@ -0,0 +1,24 @@ +//Example_a_6_2 page no:234
+clc;
+I=5;
+Z1mag=10;
+Z1ang=-60;
+Z2mag=16;
+Z2ang=70;
+Z1real=Z1mag*cosd(Z1ang);
+Z1img=Z1mag*sind(Z1ang);
+Z1=Z1real+(Z1img*%i);
+Z2real=Z2mag*cosd(Z2ang);
+Z2img=Z2mag*sind(Z2ang);
+Z2=Z2real+(Z2img*%i);
+Z=Z1+Z2;
+Zmag=sqrt(real(Z)^2+imag(Z)^2);
+pf=real(Z)/Zmag;
+active_power=I^2*real(Z);
+apparent_power=I^2*Zmag;
+reactive_power=I^2*imag(Z);
+disp(pf,"the power factor is ");
+disp(active_power,"the active power is (in W)");
+disp(apparent_power,"the apparent power is (in VA)");
+disp(reactive_power,"the reactive power is (in VAR)");
+disp("the calculated values varies slightly with textbook hence values are rounded off in text book");
|