diff options
Diffstat (limited to '147/CH1/EX1.4/Example1_4.sce')
-rw-r--r-- | 147/CH1/EX1.4/Example1_4.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/147/CH1/EX1.4/Example1_4.sce b/147/CH1/EX1.4/Example1_4.sce new file mode 100644 index 000000000..87ab958f3 --- /dev/null +++ b/147/CH1/EX1.4/Example1_4.sce @@ -0,0 +1,18 @@ +//Resistance R
+close();
+clear;
+clc;
+R1 = 1;//ohm
+R2 = 2;
+R3 = 3;
+R4 = 6;
+R5 = 6;
+R6 = 16;
+R7 = 8;
+//Resistance between cd 'Rcd'
+Rcd = (R2*R3*R4)/(R2*R3+R3*R4+R4*R2);
+Raes = R1+Rcd+R5;
+Rae = Raes*R7/(Raes+R7);
+//Resistance between ab 'Rab'
+Rab = Rae+R6;
+mprintf('Rab = %0.0f ohm',Rab);
\ No newline at end of file |