horzLine = '_______________________________________';
fprintf('\n         Homework #4, Problem 2c \n%s \n', horzLine);
fprintf('  n         (x+y)^n=1           error \n%s\n', horzLine);

x=10; y=-9;
for n=1:20
    result = binomial(x, y, n);
    fprintf(' %2d   %22.15e   %.1e \n', n, result, abs(result-1) );
end

fprintf('%s\n  ****  Only works for n below 14 \n\n', horzLine);
