function y=pow(x)
% y=pow(x) calculates the power in the input sequence x
y=sum(x.^2)/length(x);
