function res = cumul2(k,t,sp,c,n)

l = length(sp);
s = 0;

for m = 1:l
    s = s +(c+sp(m))^k*exp(-i*t*sp(m));
end

res = 3^(-n)*s;




end
