summaryrefslogtreecommitdiff
path: root/3754/CH28/EX28.4/28_4.sce
blob: 444451960d9dc4d3433e84be43100fbe8643bef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear//

//Variables

fo = 1600.0 * 10**3        //Resonant frequency (in Hertz)
BW = 10.0 * 10**3          //Bandwidth (in Hertz)

//Calculation

Qo = fo / BW               //Quality factor

//Result

printf("\n The Q-factor is  %0.3f .",Qo)