blob: 5df2f7c540411d4e1742b6aa6f499ed6cdce3bf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Problem 28.07: A filter in the form of a series L–R–C circuit is designed to operate at a resonant frequency of 10 kHz. Included within the filter is a 10 mH inductance and 5 ohm resistance. Determine the bandwidth of the filter.
//initializing the variables:
R = 5; // in ohms
L = 0.010; // IN Henry
fr = 10000; // in Hz
//calculation:
wr = 2*%pi*fr
//Q-factor at resonance is given by
Qr = wr*L/R
//Since Qr = fr/(f2 - f1),
bw = fr/Qr
printf("\n\n Result \n\n")
printf("\n bandwidth of the filter is %.1f Hz\n",bw)
|