Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. 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