summaryrefslogtreecommitdiff
path: root/1430/CH2/EX2.2/exa2_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1430/CH2/EX2.2/exa2_2.sce')
-rw-r--r--1430/CH2/EX2.2/exa2_2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1430/CH2/EX2.2/exa2_2.sce b/1430/CH2/EX2.2/exa2_2.sce
new file mode 100644
index 000000000..0ffe31320
--- /dev/null
+++ b/1430/CH2/EX2.2/exa2_2.sce
@@ -0,0 +1,11 @@
+// Example 2.2
+// Parallel Resistance Calculations
+// From Figure 2.6(a)
+i_x=2; // Current through unknown resistance R_x
+G_par= 1/12+ 1/24+1/8 ; // Equivalent conductance for three resistors of value 12ohms, // 24ohms & 8ohms.
+R_par=1/G_par; // Equivalent Resistance of those three resistors.
+// Using Ohm's Law and KCL
+v= R_par*(10-i_x);
+R_x= v/i_x;// Ohm's law
+disp(v,"Voltage across unknown Resistor(in Volts)=")
+disp(R_x,"Resistance across unknown Resistor(in Ohms)=")