diff options
Diffstat (limited to '3835/CH2/EX2.23/Ex2_23.sce')
-rw-r--r-- | 3835/CH2/EX2.23/Ex2_23.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/3835/CH2/EX2.23/Ex2_23.sce b/3835/CH2/EX2.23/Ex2_23.sce new file mode 100644 index 000000000..946bc7fa2 --- /dev/null +++ b/3835/CH2/EX2.23/Ex2_23.sce @@ -0,0 +1,12 @@ +clear +// +//thevenin's theorem and superposition theorem used here +//applying mesh eqns to the 2 circuits and after getting the eqns they are solved using cramer's rule to obtain i1 and i2 +i1=-0.6 +i2=-1.2 +//the value of currents indicates that they have assumed to be flowing in directions opposite to the assumed direction +vth=12-1.2*3 //voltage eqn +rth=1.425 //(1+2||12)||3=(1+(2*12)/(2+12))||3=19/7||3=19/7*3/19/7+3=1.425 +i2=vth/(rth+2) +printf("\n current through 2 ohm resistor is= %0.1f A",i2) +printf("\n Note that the same problem is again solved using superposition theorem and hence ignored ") |