function [V,d]=Vconj_restr_log2(dig,n)
%VCONJ_RESTR_LOG2 The matrix V of the restricted Stenger conjecture 
%and its eigenvalues for an algebraic/square-logarithmic weight function
%   [V,D]=VCONJ_LOG2(DIG,N) generates, partly in DIG-digit
%   arithmetic, the NxN matrix V, N <= 30, and its eigenvalues D 
%   for an algebraic/square-logarithmic weight function with parameter A. 
%   The elements of V are computed by suitable Gauss quadratures.

global ab ableg 
m=ceil(n/2);
V=zeros(n);
abn=ab(1:n,:); ablegm=ableg(1:m,:); 
xwn=gauss(n,abn); xn=xwn(:,1);
xwlegm=gauss(m,ablegm); xlegm=xwlegm(:,1); wlegm=xwlegm(:,2);
for j=1:n
  cn=xn(j);
  for k=1:n
    s1=0;
    for i=1:m
      x=(1-cn)*xlegm(i)+cn;  
      lag=lagrange(n,xn,x);
      s1=s1+wlegm(i)*lag(k);
    end
    V(j,k)=(1-cn)*s1;
  end
end
digits(dig);
sV=vpa(V); d=eig(sV);
d=double(d);
V=double(sV);
