function ab=r_ellcheb(N,om2)
%R_ELLCHEB Recurrence coefficients for the elliptic Chebyshev 
%weight function.
%   AB=R_ELLCHEB(N,OM2) generates the first N recurrence coefficients
%   for monic polynomials orthogonal with respect to the weight
%   function W(T)=[(1-OM2*T^2)*(1-T^2)]^{-1/2} on [-1,1], where
%   0<OM2<1.
%
if((N<=0)|(om2<0)|(om2>=1)) 
  error('parameter(s) out of range');
end
abm=r_jacobi(2*N-1,-1/2);
mom=mm_ellcheb(N,om2,eps);
ab=chebyshev(N,mom,abm);
