summaryrefslogtreecommitdiff
path: root/1430/CH2/EX2.2/exa2_2.sce
blob: 0ffe31320e65f48f2a806d22ca368ae065e545a1 (plain)
1
2
3
4
5
6
7
8
9
10
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)=")