summaryrefslogtreecommitdiff
path: root/1853/CH1/EX1.7/Ex1_7.sce
blob: 15c2808b8cee84d81b407152fbba585926fce317 (plain)
1
2
3
4
5
6
7
8

//calculate the current I1.I2
I=12
R1=6
R2=8
I1=I*R2/(R1+R2)
I2=I*R1/(R1+R2)
disp('I1='+string(I1)+'amps'  ,   'I2 ='+string(I2)+'amps')