% Power series of arctan(x) function SUM=farcan(x,N) SUM=0; for i=1:N SUM=SUM + ((-1)^(i+1))* (x^(2*i-1))/(2*i-1); end