Helle Alan,
thanks for the very quick help. So I understand now, what I was doing wrong, but I still do not understand what the program does if I don't vectorize k'_hi and k'_lo. Because the resulting output is also a vector, and the results are somewhat close to the true results.
Mark