Dear all,

I have a set of data, say x(n)={1,2,3,4} if I want to calculate

How can I program it?Code:actually, this is not code.(but if i not type like this, the article cannot post,sorry) Y[0]=x(0)*x(0)+x(1)*x(1)+x(2)*x(2)+x(3)*x(3) Y[1]=x(0)*x(1)+x(1)*x(2)+x(2)*x(3) Y[2]=x(0)*x(2)+x(1)*x(3) Y[3]=x(0)*x(3) (every time, the set of data times itself by shift to left by 1,at the begining, it times itself without shifting)

Thank you.