blob: 0ba84a0c2faa0545b8380801214f3548e52334e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Problem 15.23: A filter in the form of a series L–R–C circuit is designed to operate at a resonant frequency of 5 kHz. Included within the filter is a 20 mH inductance and 10 ohm resistance. Determine the bandwidth of the filter.
//initializing the variables:
L = 20E-3; // in Henry
R = 10; // in ohms
fr = 5000; // in Hz
//calculation:
Qr = (2*%pi*fr)*L/R
bw = fr/Qr
printf("\n\n Result \n\n")
printf("\n Bandwidth, (f2-f1) = %.1f Hz",bw)
|