python/fitval.py
changeset 0 0efde00f9229
equal deleted inserted replaced
-1:000000000000 0:0efde00f9229
       
     1 #!/usr/bin/python
       
     2 
       
     3 # finds the value of a polynomial in powers of z^{-1}
       
     4 # function Y = filtval(P,z)
       
     5 
       
     6 def fitval(P, z):
       
     7     N = len(P) - 1
       
     8     return Y
       
     9    
       
    10 Q = polyno(P,'x');
       
    11 Y = horner(Q,z)/z^N;