blob: 4c67ee0908872724b0c04009d4d78e05b6dab333 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Exa 7.29
clc;
clear;
close;
// Given data
f= 500;// in kHz
f=f*10^3;// in Hz
C=120;// in pF
C=C*10^-12;// in F
R= 5;// in ohm
r=0.02;// resistance used across the oscillatory circuit in ohm
omega= 2*%pi*f;// in radians/sec
Q_True= 1/(omega*C*R);
Q_indicated= 1/(omega*C*(R+r));
PerError= (Q_True-Q_indicated)*100/Q_True;// in %
disp(PerError,"Percentage Error is ")
|