diff options
Diffstat (limited to '147/CH2/EX2.3/Example2_3.sce')
-rw-r--r-- | 147/CH2/EX2.3/Example2_3.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/147/CH2/EX2.3/Example2_3.sce b/147/CH2/EX2.3/Example2_3.sce new file mode 100644 index 000000000..4dd812313 --- /dev/null +++ b/147/CH2/EX2.3/Example2_3.sce @@ -0,0 +1,15 @@ +close();
+clear;
+clc;
+R1 = 12; //ohm
+R2 = 4; //ohm
+R3 = 5; //ohm
+R4 = 5; //ohm
+R5 = 15; //ohm
+//voltage across R1 'V1'
+V1 = 132; //V
+I = V1/R1;
+R = R1 + R2 + (R4+R5)*R3/(R3+R4+R5);
+//source voltage 'V'
+V = I*R;
+mprintf("The voltage source, V = %d V",round(V));
\ No newline at end of file |