summaryrefslogtreecommitdiff
path: root/3281/CH1/EX1.5/ex1_5.sce
blob: e2ea17376b2af39bd9591ce09a382c2e54c30ab6 (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
//Page Number: 15
//Example 1.5
clc;
//Given
l=1.2;//mH
r=8;//ohm
c=200D-12;//F

//(i) Resonant frequency
f0=(1/(2*%pi))*sqrt(1/(l*c));//hz
disp('hz',f0,'Resonant frequency:');

//(ii) Impedance of circuit
disp('ohm',r,'Impedance of circuit:');

//(iii)Q factor of the circuit
q=1/(2*%pi*f0*c*r);
disp(q,'Q factor of the circuit:');

//(iv) Bandwidth
df=f0/q;//hz
disp('hz',df,'Bandwidth:');

//The value of resonant frequency is calculated wrong in book
//Hence Q factor and bandwidth, all these answers dont match