summaryrefslogtreecommitdiff
path: root/1109/CH12/EX12.26/12_26.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1109/CH12/EX12.26/12_26.sce
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 '1109/CH12/EX12.26/12_26.sce')
-rwxr-xr-x1109/CH12/EX12.26/12_26.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1109/CH12/EX12.26/12_26.sce b/1109/CH12/EX12.26/12_26.sce
new file mode 100755
index 000000000..7290747e6
--- /dev/null
+++ b/1109/CH12/EX12.26/12_26.sce
@@ -0,0 +1,18 @@
+clear;
+clc;
+V=100;R1=50;R2=60;R3=40;R4=60;R5=40;
+Rac=1/((1/(R2+R3))+(1/(R4+R5)));
+Rt=Rac+R1;
+I=V/Rt;
+V1=I*R1;
+Vac=V-V1;
+Vab=R2*Vac/(R2+R3);
+Vad=R5*Vac/(R4+R5);
+Vbd=Vab-Vad;
+Voc=Vbd;
+R1y=R5*R1/(R1+R4+R5);
+R2y=R1*R4/(R1+R4+R5);
+R3y=R4*R5/(R1+R4+R5);
+Rbd=R3y+(1/((1/(R1y+R2))+(1/(R2y+R3))));
+printf("The equivalent Thevenin circuit has an emf of %d volts and an internal impedance of %d ohms",Vbd,Rbd);
+