Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Solved! Go to Solution.
In other words: In your functioin, working with vectors, you need to vectorise the xpression to get the desired result, is what ttokoro shows.
Success!
Luc