summaryrefslogtreecommitdiff
path: root/2459/CH18/EX18.1/Ex18_1.sce
blob: b3c144cf2b36fafc4ab824c1f00cf3723e14a585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//chapter18
//example18.1
//page396
L=1.25d-3 // H
C=250d-12 // F
R=10 // ohm

fr=(((1/(L*C))-(R^2/L^2))^0.5)/(2*%pi)
Zr=L/(C*R)
Q=2*%pi*fr*L/R

printf("resonant frequency of circuit = %.3f Hz or %.3f kHz \n",fr,fr/1000)
printf("impedence of circuit at resonance = %.3f ohm or %.3f kilo ohm \n",Zr,Zr/1000)
printf("quality factor of the circuit = %.3f",Q)