% Requires GNU Octave v3.8+ or Matlab 2012+
% A script to do some plot for the MA 101 course, part 2, at Mahindra École Centrale, 2014.
% (C) Lilian BESSON, 2014
%
clear all; clf; close all hidden;
fprintf('.:# A script to do some plot for the MA 101 course, part 2, at Mahindra École Centrale, 2014. #:.\n\n');

%% First plot (Thomas' Calculus, page 158, Figure 41 and 44)
N = 3000
xmin = -3.
xmax = 3.
h = (xmax - xmin) / (N-1)
x = xmin : h : xmax;

y = sin(x); % FIXME

hold on;
plot(x, y, 'b-');
title(['Thomas Calculus, page 158, Figure 41 : MA101, Mahindra École Centrale, 2014']);
hold off;
drawnow;