summaryrefslogtreecommitdiff
path: root/3673/CH7/EX7.a.10/Example_a_7_10.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3673/CH7/EX7.a.10/Example_a_7_10.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 '3673/CH7/EX7.a.10/Example_a_7_10.sce')
-rw-r--r--3673/CH7/EX7.a.10/Example_a_7_10.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3673/CH7/EX7.a.10/Example_a_7_10.sce b/3673/CH7/EX7.a.10/Example_a_7_10.sce
new file mode 100644
index 000000000..b3aaed5b4
--- /dev/null
+++ b/3673/CH7/EX7.a.10/Example_a_7_10.sce
@@ -0,0 +1,26 @@
+//Example_a_7_10 page no:278
+clc;
+V_j4mag=20/2.83;
+V_j4ang=0-45;
+V10mag=10;
+V10ang=0;
+V5mag=5;
+V5ang=90;
+V_j4real=V_j4mag*cosd(V_j4ang);
+V_j4imag=V_j4mag*sind(V_j4ang);
+V_j4=V_j4real+(%i*V_j4imag);
+V10real=V10mag*cosd(V10ang);
+V10imag=V10mag*sind(V10ang);
+V10=V10real+(%i*V10imag);
+V5real=V5mag*cosd(V5ang);
+V5imag=V5mag*sind(V5ang);
+V5=V5real+(%i*V5imag);
+Vab=-V10+V5-V_j4;
+Vabmag=sqrt(real(Vab)^2+imag(Vab)^2);
+Vabang=atand(imag(Vab)/real(Vab));
+Vabang=180+Vabang;
+disp(Vabmag,"the magnitude of thevenin voltage is (in V)");
+disp(Vabang,"the angle of thevenin voltage is (in degree)");
+Zab=4+((2+(%i*6))*(-%i*4)/(2+(%i*2)));
+disp(Zab,"the thevenin impedance is (in ohm)");
+//imaginary part of Zab varies slightly with text book hece textbook uses a rounded off value