summaryrefslogtreecommitdiff
path: root/1958/CH12/EX12.e.5/Chapter12_example5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1958/CH12/EX12.e.5/Chapter12_example5.sce')
-rwxr-xr-x1958/CH12/EX12.e.5/Chapter12_example5.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1958/CH12/EX12.e.5/Chapter12_example5.sce b/1958/CH12/EX12.e.5/Chapter12_example5.sce
new file mode 100755
index 000000000..8ace7fa46
--- /dev/null
+++ b/1958/CH12/EX12.e.5/Chapter12_example5.sce
@@ -0,0 +1,12 @@
+clc
+clear
+//Input data
+R=[12,8,3,6]//Resistances from circuit diagram 12.17 on page no.179 in ohms
+V=12//Voltage in V from circuit diagram 12.17 on page no.179
+
+//Calculations
+Rth=((R(3)*R(1))/(R(3)+R(1)))+((R(2)*R(4))/(R(2)+R(4)))//Equivalent resistance in ohms
+Vth=2.74//Thevenin voltage taken from the circuit diagram 12.19(a) on page no.179 in V
+
+//Output
+printf('Thevenin equivalent resistance is %3.2f ohms \n Thevenin equivalent voltage is %3.2f V',Rth,Vth)