function res = CS_EX1_incon(n1,n2)
% CS_EX1_incon - Experiment 1.1 results on inconsistent KBs
%                all corners chopped for n = 3 to 15
% On input:
%     n1 (int): lower bound for number of atoms
%     n2 (int): upper bound for number of atoms
% On output:
%     res (n2-n1+1 x 1 vector): 0 if some distance > sqrt(n+2)/2; else 1
% Call:
%     res = CS_EX1_incon(3,10);
% Author:
%     T. Henderson
%     UU
%     Fall 2022
%

TOL = 0.01;

n_vals = [n1:n2];
num_n_vals = length(n_vals);
res = zeros(num_n_vals,1);  % 1 if no pt > sqrt(n-2)/2 from Hn center
for k = 1:num_n_vals
    n = n_vals(k);
    max_dist = sqrt(n-2)/2 + TOL;
    KB = CS_gen_incon(n);
    p = CS_EX1_projections(KB);
    res(k) = max(p)<=max_dist;
end

tch = 0;
