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

