summaryrefslogtreecommitdiff
path: root/147/CH2/EX2.17/Example2_17.sce
diff options
context:
space:
mode:
Diffstat (limited to '147/CH2/EX2.17/Example2_17.sce')
-rw-r--r--147/CH2/EX2.17/Example2_17.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/147/CH2/EX2.17/Example2_17.sce b/147/CH2/EX2.17/Example2_17.sce
new file mode 100644
index 000000000..0ece8f06e
--- /dev/null
+++ b/147/CH2/EX2.17/Example2_17.sce
@@ -0,0 +1,19 @@
+close();
+clear;
+clc;
+V = 100; //V
+Rab = 3; //ohm
+Rac = 6; //ohm
+Rbc = 9; //ohm
+Rao = 9; //ohm
+Rbo = 6; //ohm
+Rco = 3; //ohm
+rac = (Rao*Rco + Rao*Rbo + Rbo*Rco)/Rbo;
+rbc = (Rao*Rco + Rao*Rbo + Rbo*Rco)/Rao;
+rab = (Rao*Rco + Rao*Rbo + Rbo*Rco)/Rco;
+Rab1 = (rac*Rac/(rac+Rac)) + (rbc*Rbc/(rbc+Rbc));
+Rab2 = Rab*rab/(Rab+rab);
+R = Rab1*Rab2/(Rab1+Rab2);
+//power supplied 'P'
+P = V^2/R; //W
+mprintf("Power supplied, P = %0.1f W",P); \ No newline at end of file