summaryrefslogtreecommitdiff
path: root/887/CH2/EX2.3/2_3.sce
blob: 1c177c43c6054bc9e9bb6c5b90188511808e5c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
//ex2.3
V_total=15;
R_1=1*10^3;
R_2=1*10^3;
R_3=2*10^3;
R_4=6*10^3;
//By voltage-division priciple
V_1=R_1*V_total/(R_1+R_2+R_3+R_4);      //voltage across R_1
V_4=R_4*V_total/(R_1+R_2+R_3+R_4);      //voltage across R_4
disp(V_1,'voltage across R_1')
disp(V_4,'voltage across R_4')