summaryrefslogtreecommitdiff
path: root/3556/CH9/EX9.11/Ex9_11.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3556/CH9/EX9.11/Ex9_11.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 '3556/CH9/EX9.11/Ex9_11.sce')
-rw-r--r--3556/CH9/EX9.11/Ex9_11.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/3556/CH9/EX9.11/Ex9_11.sce b/3556/CH9/EX9.11/Ex9_11.sce
new file mode 100644
index 000000000..7e7b118e1
--- /dev/null
+++ b/3556/CH9/EX9.11/Ex9_11.sce
@@ -0,0 +1,34 @@
+clc
+// Fundamental of Electric Circuit
+// Charles K. Alexander and Matthew N.O Sadiku
+// Mc Graw Hill of New York
+// 5th Edition
+
+// Part 2 : AC Circuits
+// Chapter 9 : Sinusoids and Phasors
+// Example 9 - 11
+
+clear; clc; close;
+//
+// Given data
+L = 5.0000;
+C = 0.0100;
+w = 4.0000;
+R = 60.0000;
+Vs = complex(20*cosd(-15.0000),20*sind(-15.0000));
+ZL = complex(0.0000,w*L);
+ZC = complex(0.0000,-1/(w*C));
+ZR = complex(R,0.0000);
+//
+// Calculations Zp = ZL//ZC
+Zp = (ZL*ZC)/(ZL+ZC);
+// Calculations Ztot
+Ztot = ZR + Zp;
+// Calculations Vo
+Vo = ((Zp)/(Ztot)) * Vs;
+Vo_mag = norm(Vo);
+Vo_angle = atand(imag(Vo),real(Vo));
+//
+disp("Example 9-11 Solution : ");
+printf(" \n Vo_mag = Magnitude of Vo = %.3f Volt",Vo_mag)
+printf(" \n Vo_angle = Angle of Vo = %.3f degree",Vo_angle)