summaryrefslogtreecommitdiff
path: root/2384/CH2/EX2.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2384/CH2/EX2.3
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2384/CH2/EX2.3')
-rwxr-xr-x2384/CH2/EX2.3/ex2_3.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2384/CH2/EX2.3/ex2_3.sce b/2384/CH2/EX2.3/ex2_3.sce
new file mode 100755
index 000000000..278a4940e
--- /dev/null
+++ b/2384/CH2/EX2.3/ex2_3.sce
@@ -0,0 +1,17 @@
+// Exa 2.3
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+R1 = 6;// in ohm
+R2 = 7;// in ohm
+R3 = 4;// in ohm
+R_L = 12;// in ohm
+V = 30;// in V
+Vth = (R3*V)/(R3+R1);// in V
+Rth = R2 + ((R3*R1)/(R3+R1)) ;// in ohm
+I_N = Vth/Rth;// in A
+//The current through 12 ohm resistor
+I = (I_N*Rth)/(Rth+R_L);// in ohm
+disp(I,"The current through 12 ohm resistor in A is");