diff options
Diffstat (limited to '147/CH2/EX2.4')
-rw-r--r-- | 147/CH2/EX2.4/Example2_4.sce | 14 | ||||
-rw-r--r-- | 147/CH2/EX2.4/Result2_4.txt | 2 |
2 files changed, 16 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 diff --git a/147/CH2/EX2.4/Result2_4.txt b/147/CH2/EX2.4/Result2_4.txt new file mode 100644 index 000000000..faa397ac6 --- /dev/null +++ b/147/CH2/EX2.4/Result2_4.txt @@ -0,0 +1,2 @@ +I1 = 8.8 A
+I2 = 2.2 A
\ No newline at end of file |