blob: 88e7d37cef3845793ff715384eb7e69ba5e37924 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clear
//
//eqns derived from figure
//6v1-4v2=2-->1
//-4v1+7v2=-3-->2
//eqn 1 and 2 are written in matrix form and solved using cramers rule
printf("\n v1=0.0769 V")
printf("\n v2=-0.3846V")
printf("\n current in 0.5ohm resistance is 0.154A,0.25ohm resistance is 1.846,0.66ohm resistor is -1.154A")
|