blob: 44b3f65b99bb3020005ee07394bc48612898f117 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//chapter4
//example4.5
//page74
Vm=1000 // V
rp=500 // ohm
Rl=4500 // ohm
Im=Vm/(rp+Rl) // in ampere
Idc=2*Im/%pi // in ampere
Idc_mA=Idc*1000 // in mA
Iac=Im/2^0.5 // in ampere
Iac_mA=Iac*1000 // in mA
printf("dc ammeter reading = %.3f A or %.3f mA \n",Idc,Idc_mA)
printf("ac ammeter reading = %.3f A or %.3f mA",Iac,Iac_mA)
|