summaryrefslogtreecommitdiff
path: root/3835/CH1/EX1.22/Ex1_22.sce
blob: 262a7da83cdc0d143001fbafe49009967dc48071 (plain)
1
2
3
4
5
6
7
8
9
10
11
clear
//
//applying kcl to circuit at node b i3+i4=6-4=2
vb=8
vba=2 //voltage drop across nodes b and a
va=6 //potential of node a w.r.t note c
i2=3
//applying kcl to node a
isa=1
vs=va+2*isa
printf("\n vse= %0.1f  V",vs)