summaryrefslogtreecommitdiff
path: root/macros/levdown.sci
blob: f09612bfd035ac22d42ead1c2d7eef31fcc52aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function [a,e]=levdown(a, efinal)

    
                   ee=a($);
                 
                  a = (a-a($)*flipdim(a,2,1))/(1-a($)^2);
                                               
                      a=a(1:$-1)
                  
         
      econj=conj(ee);
    econj=econj';
    e = efinal/(1.-(econj.*ee));      
                              
endfunction