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.26 | |
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.26')
-rwxr-xr-x | 2384/CH2/EX2.26/ex2_26.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2384/CH2/EX2.26/ex2_26.sce b/2384/CH2/EX2.26/ex2_26.sce new file mode 100755 index 000000000..e8155bcb0 --- /dev/null +++ b/2384/CH2/EX2.26/ex2_26.sce @@ -0,0 +1,20 @@ +// Exa 2.26
+clc;
+clear;
+close;
+format('v',7)
+// Given data
+R1 = 2;// in ohm
+R2 = 4;// in ohm
+R_L = 4;// in ohm
+V1 = 6;// in v
+V2 = 12;// in V
+// -R2*Ix -R1*Ix-V1+V2= 0;
+Ix = (V2-V1)/(R1+R2);// in A
+Vth = V1+R1*Ix;// in V
+Rth = (R1*R2)/(R1+R2);// in ohm
+I_N = Vth/Rth;// in A
+I = (I_N*Rth)/(Rth+R_L);// in A
+disp(I,"The current in A is");
+
+// Note: At last, there is calculation error to find the value of I, so the answer in the book is wrong.
|