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 /343/CH1/EX1.66 | |
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 '343/CH1/EX1.66')
-rwxr-xr-x | 343/CH1/EX1.66/ex_66.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/343/CH1/EX1.66/ex_66.sce b/343/CH1/EX1.66/ex_66.sce new file mode 100755 index 000000000..0e233026b --- /dev/null +++ b/343/CH1/EX1.66/ex_66.sce @@ -0,0 +1,15 @@ +V1=150; //Assigning values to parameters
+V2=50;
+I1=13;
+R1=15;
+R2=60;
+R3=40;
+R4=30;
+A=[-1,1;-15,-100]; //Current coeffecients
+B=[13;-150];
+I=inv(A)*B;
+Vth=-V2+R3*I(2,1); //Thevenin voltage
+Ra=R1+R2;
+Rth=(R3*Ra)/(R3+Ra); //Thevenin resistance
+Il=Vth/(R4+Rth);
+disp("Amperes",Il," Current flowing in 20 Ohm resistor");
\ No newline at end of file |