blob: 5b6fddbbcf7fc4b1b1171f1a2755aa8cc74a2c72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//chapter-8,Example8_4,pg 499
Vc=100//voltage across capacitor
Vi=12//input voltage
Q=(Vc/Vi)//Q-factor
f=100//frequency of operation
Vl=100//Vc=Vl at resonance
Ir=5//current at resonance
Xl=(Vl/Ir)//inductive reactance
L=(Xl/(2*%pi*f))//inductance
Rl=(Xl/Q)//resistance
printf("inductance of coil\n")
printf("L=%.4f Henry\n",L)
printf("Q-factor\n")
printf("Q=%.3f \n",Q)
printf("resistance of coil\n")
printf("Rl=%.2f ohm",Rl)
|