diff options
Diffstat (limited to '147/CH2/EX2.4/Example2_4.sce')
-rw-r--r-- | 147/CH2/EX2.4/Example2_4.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/147/CH2/EX2.4/Example2_4.sce b/147/CH2/EX2.4/Example2_4.sce new file mode 100644 index 000000000..6db7c40e2 --- /dev/null +++ b/147/CH2/EX2.4/Example2_4.sce @@ -0,0 +1,14 @@ +//Resistance R, Voltage V, Current I
+close();
+clear;
+clc;
+R1 = 5;//ohm
+R2 = 15;
+R3 = 5;
+R4 = 4;
+R5 = 12;
+V5 = 132;//V
+I = V5/R5;
+I1 = (R1+R2)/(R1+R2+R3)*I;
+I2 = R3/(R1+R2+R3)*I;
+mprintf('I1 = %0.1f A\nI2 = %0.1f A',I1,I2);
\ No newline at end of file |