summaryrefslogtreecommitdiff
path: root/343/CH2/EX2.74/ex2_74.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /343/CH2/EX2.74/ex2_74.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 '343/CH2/EX2.74/ex2_74.sce')
-rwxr-xr-x343/CH2/EX2.74/ex2_74.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/343/CH2/EX2.74/ex2_74.sce b/343/CH2/EX2.74/ex2_74.sce
new file mode 100755
index 000000000..105d45606
--- /dev/null
+++ b/343/CH2/EX2.74/ex2_74.sce
@@ -0,0 +1,30 @@
+clc
+Z1=14+%i*5; //Assigning values to parameters
+Z2=18+%i*10;
+V=200;
+Y1=1/Z1;
+Y2=1/Z2;
+Yeq=Y1+Y2;
+Zeq=1/Yeq;
+I1=V/Z1;
+I2=V/Z2;
+I=V/Zeq;
+P1=I1^2*real(Z1);
+P2=I2^2*real(Z2);
+[r,t]=polar(Zeq);
+[r1,t1]=polar(Z1);
+[r2,t2]=polar(Z2);
+pf1=cos(t1);
+pf2=cos(t2);
+pf=cos(t);
+disp("Mho",Y1,polar(Y1),"Y1");
+disp("Mho",Y2,polar(Y2),"Y2");
+disp("Mho",Yeq,polar(Yeq),"Yeq");
+disp("Amperes",I1,polar(I1),"Branch current I1");
+disp("Amperes",I2,polar(I2),"Branch current I2");
+disp("Amperes",I,polar(I),"Total current I");
+disp("Watts",P1,polar(P1),"Power consumed by branch 1");
+disp("Watts",P2,polar(P2),"Power consumed by branch 2");
+disp(polar(pf1),"Power factor of branch 1");
+disp(polar(pf2),"Power factor of branch 2");
+disp(polar(pf),"Total Power factor"); \ No newline at end of file