
%  Program to compute several terms of the Taylor series
%  of arctan(x) and graph the Taylor polynomial that 
%  results.

 x=-1.5:.01:1.5;
Tseries=0;
for k=1:3
    Tseries= Tseries+((-1)^(k+1))*(x.^(2*k-1))/(2*k-1);
end

plot(x, Tseries);
    

    
    
    





