summaryrefslogtreecommitdiff
path: root/147/CH2/EX2.18/Example2_18.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /147/CH2/EX2.18/Example2_18.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 '147/CH2/EX2.18/Example2_18.sce')
-rw-r--r--147/CH2/EX2.18/Example2_18.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/147/CH2/EX2.18/Example2_18.sce b/147/CH2/EX2.18/Example2_18.sce
new file mode 100644
index 000000000..6c818b99d
--- /dev/null
+++ b/147/CH2/EX2.18/Example2_18.sce
@@ -0,0 +1,22 @@
+//Resistance R, Voltage V, Load resistance Rl
+close();
+clear;
+clc;
+R1 = 11/8;
+R2 = 1;
+R3 = 3;
+R4 = 2;
+V = 11;//V
+Rl1 = 9;//ohm
+Rl2 = 99;
+Rth = R1*(R2*R4+R2*R3+R3*R4)/(R1*R2+R2*R3+R3*R4+R4*R1+R2*R4);
+//To find Vth
+Req = R4 + R2*(R1+R3)/(R1+R2+R3);
+I = V/Req;
+I1 = R2/(R1+R3)*I;
+I2 = I-I1;
+Vth = I1*R3+I*R4;
+//Load Current for Rl1 'Il1'
+Il1 = Vth/(Rl1+Rth);
+Il2 = Vth/(Rl2+Rth);
+mprintf('Rth = %0.0f ohm \nVth = %0.0f ohm\nFor 9 ohm, Load Current I = %0.0f A\nFor 99 ohm, Load Current I = %0.1f A',Rth,Vth,Il1,Il2);