summaryrefslogtreecommitdiff
path: root/620/CH25/EX25.20/example25_20.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /620/CH25/EX25.20/example25_20.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '620/CH25/EX25.20/example25_20.sce')
-rw-r--r--620/CH25/EX25.20/example25_20.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/620/CH25/EX25.20/example25_20.sce b/620/CH25/EX25.20/example25_20.sce
new file mode 100644
index 000000000..0fda807e3
--- /dev/null
+++ b/620/CH25/EX25.20/example25_20.sce
@@ -0,0 +1,24 @@
+r1=20;
+r2=25;
+r3=40;
+x_l1=50;
+x_l2=40;
+x_c=40;
+z1=r1+%i*x_l1;
+z2=r2+%i*x_l2;
+z3=r3-%i*x_c;
+y1=1/z1;
+y2=1/z2;
+y3=1/z3;
+disp("Part a");
+y=y1+y2+y3;
+r=1/real(y);
+x_l=-1/imag(y);
+disp("for an equivalent series circuit the value of resistance (in Ω) is"); disp(r);
+disp("and the value of reactance (in Ω) is"); disp(x_l);
+disp("Part b");
+z=1/y;
+r0=real(z);
+x_l0=imag(z);
+disp("for an equivalent series circuit the value of resistance (in Ω) is"); disp(r0);
+disp("and the value of impedance (in Ω) is"); disp(x_l0); \ No newline at end of file