summaryrefslogtreecommitdiff
path: root/2621/CH7/EX7.11/Ex7_11.sce
blob: 7aab5acecaa5fd8b30ff472ca44477b8d0ea9e2a (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
// Example 7.11
clc;
clear;
close;
// Given data
format('v',6);
f_C= 1*10^3;//centre frequency in Hz
f_C_desh= 2*10^3;//new centre frequency in Hz
Q= 5;// selectivity
Af= -8;
C= 0.01*10^-6;// in F (assume)
R3= Q/(%pi*f_C*C);//in Ω
R3= R3*10^-3;// in kΩ
disp("The value of R3 is : "+string(R3)+" kΩ (160 kΩ (approx))");
R1= round(-R3/(2*Af));// in kΩ
disp("The value of R1 is : "+string(R1)+" kΩ");
R2= R1*10^3/(4*%pi^2*f_C^2*R1*10^3*R3*10^3*C^2-1);// in Ω
R2= R2*10^-3;// in kΩ
disp("The value of R2 is : "+string(R2)+" kΩ (2 kΩ (approx))");
R2= 2;// in kΩ (approx)
R2_desh= R2*(f_C/f_C_desh)^2;// in kΩ
R2_desh= R2_desh*10^3;// in Ω
disp("The value of R2'' is : "+string(R2_desh)+" Ω")