diff options
Diffstat (limited to '3754/CH5/EX5.5/5_5.sce')
-rw-r--r-- | 3754/CH5/EX5.5/5_5.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/3754/CH5/EX5.5/5_5.sce b/3754/CH5/EX5.5/5_5.sce new file mode 100644 index 000000000..2611b65e8 --- /dev/null +++ b/3754/CH5/EX5.5/5_5.sce @@ -0,0 +1,20 @@ +clear//
+
+//Variables
+
+VS1 = 5 //Voltage source 1 (in volts)
+VS2 = 3 //Voltage source 2 (in volts)
+V6 = 0 //Voltage drop across 6 ohm resistor when AB is open (in volts)
+R1 = 6 //Resistor (in ohm)
+R2 = 4 //Resistor (in ohm)
+
+//Calculation
+
+I = 5.0/4 //Current through 4 ohm resistor (in Ampere)
+V = I * R2 //Voltage drop across 4 ohm Resistor (in volts)
+VOC = VS2 + V6 + V //Open circuit voltage (in volts)
+Rth = R1
+
+//Result
+
+printf("\n Thevenins equivalent Voltage is %0.3f V.\nThevenins equivalent resistance is %0.3f ohm.",VOC,Rth)
|