% 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 N2;
global faktor;
global Rglobal;
for l=0:N2 
K(l+1,1)=bl(l,z);
end;
S=[Rglobal K];
y=faktor * det(S);

