function res = psik2(k,t,sp,coef,vep)

l = length(sp);
s = 0;

for m = 1:l
    s = s + coef(m)*vep(k,m)*exp(-i*t*sp(m));
end

res = s;
end
