summaryrefslogtreecommitdiff
path: root/165/CH15/EX15.7/ex15_7.sce
blob: c0418077d92543075920c9cdb741ed4a33d3e4f3 (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 15.7
clc;

fh=100;            //in Hz
fl=1000;           //in Hz
C=0.01*10^-6;      //Assumed
R1=10000;          //Assumed
Rf=R1;
R2=R1;
R3=R1;
R4=R1;

//For a LPF
R=invr(2*%pi*fh*C);
printf('\nValue of Resistor R for a LPF = %d k ohm\n',R/1000)

//For a HPF
R=invr(2*%pi*fl*C);
printf('\nValue of Resistor R for a HPF = %.1f k ohm\n',R/1000)

printf('\nValue of Resistor R1 & Rf = %.1f k ohm\n',R1/1000)

Rom=invr(invr(R2)+invr(R3)+invr(R4));
printf('\nValue of Resistor Rom = %.1f k ohm\n',Rom/1000)