% This is the n-th rational orthogonal function for the complex value z
% If you want, you can change the last line to 
% y=1/sqrt(det(G(n-1))*det(G(n))) * det(S);
% R=G(n);
% R(:,n+1)=[];

function y = Phi(z)
global nn2;
global faktor2;
global Rglobal2;
for l=0:nn2 
K(l+1,1)=bl(l,z);
end;
S=[Rglobal2 K];
y=faktor2 * det(S);

