% Randy Dimmett
% EE262 Test 
% B and A are Num and Den of F[z]/z

B = [2 3];

%A =conv([1 -1],[1 -5 6]);
%B = conv([1 0], [-0.63 2.63]);

A =conv([1 -.5],[1 -1.2 0.45]);

[R,P,K] = RESIDUE(B,A)


%      B(s)       R(1)       R(2)             R(n)
%      ----  =  -------- + -------- + ... + -------- + K(s)
%      A(s)     s - P(1)   s - P(2)         s - P(n)%