summaryrefslogtreecommitdiff
path: root/2048/DEPENDENCIES/filtval.sci
blob: 1d4dcb6b59669a69625f880f48cb1f356beac549 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Value of polynomial p(x), evaluated at x
// 11.16

// finds the value of a polynomial in powers of z^{-1}
// function Y = filtval(P,z)

function Y = filtval(P,z)
N = length(P)-1;
Q = polyno(P,'x');
Y = horner(Q,z)/z^N; 
endfunction;