summaryrefslogtreecommitdiff
path: root/2210/CH5/EX5.18/5_18.sce
blob: f473660d565aaaca9e33c56cd957d67ed0796b05 (plain)
1
2
3
4
5
6
7
8
9
//Chapter 5, Problem 18
clc
f=100e6                         //frequency in hertz
cp=100e-12                      //capacitance in farad
rp=15e3                         //resistance in ohm

//calculation
qp=2*%pi*f*cp*rp
printf("Quality factor Qp = %.2f",qp)