clear all;
close all;
clc;
x=pi/4;
sum=0;
for i=0:10
    sumeski=sum;
    sum=(-1)^i*x^(2*i+1)/factorial(2*i+1)+sum;
    if sumeski==0
        e=100;
    else
        e=abs(sum-sumeski)/sumeski*100;
    end
    S = [i sum abs(sum-sin(x))/sin(x)*100 e];disp(S)
   
end