summaryrefslogtreecommitdiff
path: root/1316/CH2/EX2.5/example2_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1316/CH2/EX2.5/example2_5.sce')
-rw-r--r--1316/CH2/EX2.5/example2_5.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/1316/CH2/EX2.5/example2_5.sce b/1316/CH2/EX2.5/example2_5.sce
new file mode 100644
index 000000000..7d3a3d660
--- /dev/null
+++ b/1316/CH2/EX2.5/example2_5.sce
@@ -0,0 +1,31 @@
+//Chapter 2
+//Example 2.5
+//Page 61
+
+clear;
+clc;
+
+R1 = 2000.00;
+R2 = 2000.00;
+R3 = 2000.00;
+R4 = 2050.00;
+V = 5.00;
+Rg = 50.0;
+
+//Calculation of Offset Current
+printf("From equation the offset voltage is Vth. \n")
+
+//Calculation of Vth
+x = V *(((R3*R2)-(R1*R4))/((R1+R3)*(R2+R4)))
+printf("Vth = %f V \n",x)
+
+//Calculation of Thevenin Resistance
+printf("We next find the bridge Thevenin Resistance form equation as : ")
+y = ((R1*R2)/(R1+R2))+((R3*R4)/(R3+R4))
+printf("Rth = %f ohm \n",y)
+
+//Calculation of Current
+printf("Finally the current is given by the equation ")
+z = x/(y + Rg)
+printf("Ig = %f Ampere \n",z)
+printf("The negative sign on current simply means that current flows fromright to left.")