blob: 7dfefa420df3ece21bbc56e81b8d5091ceba27fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//chapter25
//example25.3
//page544
S=4 // kilo ohm per volt
V_range=10 // V
V=20 // V
R=10 // kilo ohm
R_meter=S*V_range
R_equi=R+R*R_meter/(R+R_meter)
I=V/R_equi
V_reading=I*R*R_meter/(R+R_meter)
printf("voltage read by multimeter = %.3f V \n",V_reading)
|