horzLine = '______________________________________________________';
fprintf('\n         Homework #4, Problem 3 \n%s \n', horzLine);
fprintf('  x         sin(x)             mySin(x)        error \n%s\n', horzLine);

for x = 0:0.1:pi;
    s1 = sin(x); s2 = mySin(x);
    fprintf(' %3.1f  %18.15f  %18.15f  %.2e \n', x, s1, s2, abs(s1 - s2) );
end

fprintf('%s\n  ****  Perfect agreement! \n\n', horzLine);
