summaryrefslogtreecommitdiff
path: root/1994/CH8/EX8.17/Example8_17.sce
blob: fc5c7abd12c692029d13a0cc01ddf28d14973d92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Chapter-8,Example8_17,pg 8_62
R1=100
R2=10
R3=4
R4=50
E=10
Rg=20
Vth=E*((R4/(R3+R4))-(R1/(R1+R2)))
Req=(R1*R2/(R1+R2))+(R3*R4/(R3+R4))
Ig=Vth/(Rg+Req)
//for null deflection
R4=R3*R1/R2
printf("unbalanced current in galvanometer\n")
printf("Ig=%.5f A\n",Ig)
printf("resistance for null deflection\n")
printf("R4=%.f ohm",R4)