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 /343/CH2/EX2.31/ex2_31.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 '343/CH2/EX2.31/ex2_31.sce')
-rwxr-xr-x | 343/CH2/EX2.31/ex2_31.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/343/CH2/EX2.31/ex2_31.sce b/343/CH2/EX2.31/ex2_31.sce new file mode 100755 index 000000000..54f877b9f --- /dev/null +++ b/343/CH2/EX2.31/ex2_31.sce @@ -0,0 +1,27 @@ +clc
+V=200+%i*0; //Assigning values to parameters
+R1=10;
+R2=20;
+R=R1+R2;
+L1=0.05;
+L2=0.1;
+f=50;
+Xl1=2*%pi*f*L1;
+Xl2=2*%pi*f*L2;
+Xl=Xl1+Xl2;
+C=50*10^-6;
+Xc=1/(2*%pi*f*C);
+X=Xc-Xl;
+Z=R-%i*X;
+[Ro,theta]=polar(Z);
+I=V/Z;
+Z1=R1+%i*Xl1;
+Z2=R2-%i*(Xc-Xl2)
+[Ro1,Theta1]=polar(Z1);
+[Ro2,Theta2]=polar(Z2);
+[ro,th]=polar(I);
+V1=ro*Ro1;
+V2=ro*Ro2;
+disp("Amperes",ro,"Circuit Current");
+disp("Volts",V1,"Voltage V1");
+disp("Volts",V2,"Voltage V2");
\ No newline at end of file |