Thanks for your fast response but both your suggestions don't´work

@shadow969: calculateVector(a,b) is O.K. as I tested it with non-vector variables.

@Lukas: Strangely, I get random numbers with your suggestion.