summaryrefslogtreecommitdiff
path: root/3835/CH2/EX2.20/Ex2_20.sce
blob: dde599768fe9893c97cb3f83e6d650b1bfc55303 (plain)
1
2
3
4
5
6
7
8
9
10
clear
//
//eqns are obtained from the figure and are solved for currents
i1=6.89
i2=3.89
i3=-2.12
i=2*(i2-i1)
printf("\n current supplied by dependent source is= %0.1f  A",i)
power=6*i1
printf("\n power supplied by voltage source is= %0.1f  W",power)