summaryrefslogtreecommitdiff
path: root/608/CH15/EX15.22/15_22.sce
blob: f2143b83b24c2dcdea1a89fbe87387b98fca0fd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Problem 15.22: A coil of negligible resistance and inductance 100 mH is connected in series with a capacitance of 2 μF and a resistance of 10  across a 50 V, variable frequency supply. Determine (a) the resonant frequency, (b) the current at resonance, (c) the voltages across the coil and the capacitor at resonance, and (d) the Q-factor of the circuit.

//initializing the variables:
L = 100E-3; // in Henry
C = 2E-6; // in Farads
R = 10; // in ohms
V = 50; // in Volts

//calculation:
fr = 1/(2*%pi*((L*C)^0.5))
//At resonance, XL = Xc and impedance Z = R
I = V/R
VL = I*(2*%pi*fr*L)
Vc = I/(2*%pi*fr*C)
Q = VL/V

printf("\n\n Result \n\n")
printf("\n (a)the resonant frequency = %.1f Hz",fr)
printf("\n (b)Current, I = %.0f A",I) 
printf("\n (c)Voltage across coil at resonance is %.0fV and Voltage across capacitance at resonance is %.0fV",VL, Vc) 
printf("\n (d)At resonance, Q-factor = %.2f",Q)