summaryrefslogtreecommitdiff
path: root/3673/CH2/EX2.11/Ex2_11.sce
blob: 189621cd87eb7a65ea3080771d4c5c0bc275f92b (plain)
1
2
3
4
5
6
7
8
9
10
//Example 2_11 page no:74
clc
//mesh equation for the circuit is
I1=10;//current in ampere
resistance=[5,-2;-2,3]
volt=[20,10]
current=inv(resistance)'*volt'//calculating current I1 I2 I3
disp(I1,"the current I1 is (in ampere)")
disp(current(1),"the current I2 is (in ampere)")
disp(current(2),"the current I3 is (in ampere)")