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.14 | |
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.14')
-rwxr-xr-x | 2384/CH2/EX2.14/ex2_14.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2384/CH2/EX2.14/ex2_14.sce b/2384/CH2/EX2.14/ex2_14.sce new file mode 100755 index 000000000..788a27fd5 --- /dev/null +++ b/2384/CH2/EX2.14/ex2_14.sce @@ -0,0 +1,21 @@ +// Exa 2.14
+clc;
+clear;
+close;
+format('v',7)
+// Given data
+R1 = 5;// in ohm
+R2 = 2;// in ohm
+R3 = 8;// in ohm
+V1 = 20;// in V
+V2 = 12;// in V
+// V1-R2*I-R1*I = 0;
+I = V1/(R1+R2);// in A
+// Vth + V2 - R2*I = 0;
+Vth = (R2*I) - V2;// in V
+Rth = ((R1*R2)/(R1+R2)) + R3;// in ohm
+I_N = Vth/Rth;// in A
+R_L = 10;// in ohm
+// current through 10 ohm resistace
+I = (abs(I_N)*Rth)/(Rth+R_L);// in A
+disp(I,"The current through 10 ohm resistace in A is");
|