summaryrefslogtreecommitdiff
path: root/52/CH5/EX5.6/Example5_6.sce
blob: 0c8717271a1f8622036bb1ac6c262776706d18c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 5.6
//To Find out the order of the Filter using Chebyshev Approximation
clear;
clc ;
close ;
ap=3;//db
as=16;//db
fp=1000;//Hz
fs=2000;//Hz
op=2*%pi*fp;
os=2*%pi*fs;
N=acosh(sqrt((10^(0.1*as)-1)/(10^(0.1*ap)-1)))/acosh(os/op);
disp(ceil(N),'Order of the filter, N =');