Difference Operation
% d1(n)=x(n)-x(n-1) 1st Order Difference of x(n);
% d2(n)=d1(n)-d1(n-1) 2nd Order Difference of x(n);
% d3(n)=d2(n)-d2(n-1) 3RD Order Difference of x(n);
%……
Code a function for y(n)=dk(n);
% e1(n)=y(n)-y(n-1) 1st Order Difference of y(n);
% e2(n)=e1(n)-e1(n-1) 2nd Order Difference of y(n);
% e3(n)=e2(n)-e2(n-1) 3rd Order Difference of y(n);
%……
Code an other function for y(n),where ek(n)=C;
Show y(n) for x(n)=sin(pi*n/3);
What if y(n)=dk(n)&ek(n)=C?