summaryrefslogtreecommitdiff
path: root/147/CH3/EX3.9
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /147/CH3/EX3.9
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 '147/CH3/EX3.9')
-rw-r--r--147/CH3/EX3.9/Example3_9.sce18
-rw-r--r--147/CH3/EX3.9/Result3_9.txt1
2 files changed, 19 insertions, 0 deletions
diff --git a/147/CH3/EX3.9/Example3_9.sce b/147/CH3/EX3.9/Example3_9.sce
new file mode 100644
index 000000000..9851e8674
--- /dev/null
+++ b/147/CH3/EX3.9/Example3_9.sce
@@ -0,0 +1,18 @@
+close();
+clear;
+clc;
+//at node I,
+R1 = 50; //ohm
+R2 = 50; //ohm
+X = 25*(%i); //ohm
+V2 = 100; //V
+V2_arg = 0;
+V2 = V2*cos(V2_arg) + (%i)*sin(V2_arg);
+I1 = 2.83;
+I1_arg = 45*%pi/180;
+I1 = I1*cos(I1_arg) + (%i)*I1*sin(I1_arg);
+V1 = poly(0,'V1');
+pv = I1 - V1/R1 - V1/X - (V1-V2)/R2;
+V1 = roots(pv);
+I = (V2-V1)/R2;
+disp(I,"Current from the voltage source, I = "); \ No newline at end of file
diff --git a/147/CH3/EX3.9/Result3_9.txt b/147/CH3/EX3.9/Result3_9.txt
new file mode 100644
index 000000000..8541f18e0
--- /dev/null
+++ b/147/CH3/EX3.9/Result3_9.txt
@@ -0,0 +1 @@
+Current from the voltage source, I = 1.5 - 1.5005561i