diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2384/CH2/EX2.21/ex2_21.sce | |
download | Scilab-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.21/ex2_21.sce')
-rwxr-xr-x | 2384/CH2/EX2.21/ex2_21.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2384/CH2/EX2.21/ex2_21.sce b/2384/CH2/EX2.21/ex2_21.sce new file mode 100755 index 000000000..806e15572 --- /dev/null +++ b/2384/CH2/EX2.21/ex2_21.sce @@ -0,0 +1,19 @@ +// Exa 2.21
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+R1 = 4;// in ohm
+R2 = 3;// in ohm
+R3 = 2;// in ohm
+R_L = 5;// in ohm
+V = 15;// in V
+I2 = 6;// in A
+// -R1*I1 - R3*I1 + R3*I2 + V = 0;
+I1 = (V+R3*I2)/(R1+R3);// in A
+Vth = I2/R3;// in V
+V_CD = Vth;// in V
+Rth = (R1*R3)/(R1+R3)+R2;// in ohm
+I = Vth/(Rth+R_L);// in A
+disp(I,"The current flowing through 5 ohm resistor in A is");
|