File: ell1mag.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (44 lines) | stat: -rw-r--r-- 1,141 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.TH ell1mag 1 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
ell1mag - magnitude of elliptic filter
.SH CALLING SEQUENCE
.nf
[v]=ell1mag(eps,m1,z)
.fi
.SH PARAMETERS
.TP 10
eps
: passband ripple=\fV1/(1+eps^2)\fR
.TP
m1
: stopband ripple=\fV1/(1+(eps^2)/m1)\fR
.TP
z
: sample vector of values in the complex plane
.TP
v
: elliptic filter values at sample points
.SH DESCRIPTION
Function used for squared magnitude of an elliptic filter.
Usually \fVm1=eps*eps/(a*a-1)\fR. Returns 
\fVv=real(ones(z)./(ones(z)+eps*eps*s.*s))\fR for \fVs=%sn(z,m1)\fR.
.SH EXAMPLE
.nf
deff('[alpha,beta]=alpha_beta(n,m,m1)',...
'if 2*int(n/2)=n then, beta=K1; else, beta=0;end;...
alpha=%k(1-m1)/%k(1-m);')
epsilon=0.1;A=10;  //ripple parameters
m1=(epsilon*epsilon)/(A*A-1);n=5;omegac=6;
m=find_freq(epsilon,A,n);omegar = omegac/sqrt(m)
%k(1-m1)*%k(m)/(%k(m1)*%k(1-m))-n   //Check...
[alpha,beta]=alpha_beta(n,m,m1)
alpha*%asn(1,m)-n*%k(m1)      //Check
sample=0:0.01:20;
//Now we map the positive real axis into the contour...
z=alpha*%asn(sample/omegac,m)+beta*ones(sample);
plot(sample,ell1mag(epsilon,m1,z))
.fi
.SH SEE ALSO
buttmag